summaryrefslogtreecommitdiff
path: root/package/logrotate
diff options
context:
space:
mode:
authorWade Berrier <wberrier@gmail.com>2008-10-07 17:08:25 +0000
committerWade Berrier <wberrier@gmail.com>2008-10-07 17:08:25 +0000
commita8ed074e80dcfe13c0061628a1243c5e640e3e20 (patch)
treebcf80dfcbd40b0ca128150f1d1579e158d029257 /package/logrotate
parentc0f95aafb8bc504a43ee86ba777bc69c42c5b717 (diff)
logrotate: remove duplicate deps. Clean up '/etc'
on make clean. Some other syntactic niceties.
Diffstat (limited to 'package/logrotate')
-rw-r--r--package/logrotate/logrotate.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/logrotate/logrotate.mk b/package/logrotate/logrotate.mk
index 37097a833..d939d1f67 100644
--- a/package/logrotate/logrotate.mk
+++ b/package/logrotate/logrotate.mk
@@ -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