logrotate: remove duplicate deps. Clean up '/etc'
authorWade Berrier <wberrier@gmail.com>
Tue, 7 Oct 2008 17:08:25 +0000 (17:08 -0000)
committerWade Berrier <wberrier@gmail.com>
Tue, 7 Oct 2008 17:08:25 +0000 (17:08 -0000)
 on make clean.  Some other syntactic niceties.

package/logrotate/logrotate.mk

index 37097a8335d1fe9720ea6869e799c7c1ab565c4a..d939d1f67f42db719a9233aac7136deb38c1f3cd 100644 (file)
@@ -21,18 +21,20 @@ $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY): $(LOGROTATE_DIR)/$(LOGROTATE_BINARY)
        $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf
        $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
 
-logrotate: uclibc busybox popt $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY)
+logrotate: popt $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY)
 
 logrotate-source: $(DL_DIR)/$(LOGROTATE_SOURCE)
 
 logrotate-clean:
        rm -f $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY)
+       rm -f $(TARGET_DIR)/etc/logrotate.conf
+       -rmdir $(TARGET_DIR)/etc/logrotate.d
        -$(MAKE) -C $(LOGROTATE_DIR) clean
 
 logrotate-dirclean:
-       rm -Rf $(LOGROTATE_DIR)
+       rm -rf $(LOGROTATE_DIR)
 
-ifeq ($(strip $(BR2_PACKAGE_LOGROTATE)),y)
+ifeq ($(BR2_PACKAGE_LOGROTATE),y)
 TARGETS+=logrotate
 endif