aboutsummaryrefslogtreecommitdiffstats
path: root/package/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-10-05 21:52:05 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-10-05 21:52:05 +0000
commitc947d8532b84610f63e6c44d4182ce6ab54f66ad (patch)
tree2912414e68d7e549b86fc046c686a84a75a9061b /package/Makefile
parent135a672b3634a66e56cbc1c497ec378938271b9c (diff)
downloadmaster-187ad058-c947d8532b84610f63e6c44d4182ce6ab54f66ad.tar.gz
master-187ad058-c947d8532b84610f63e6c44d4182ce6ab54f66ad.tar.bz2
master-187ad058-c947d8532b84610f63e6c44d4182ce6ab54f66ad.zip
add option for cleaning all ipkg info before the image build
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9151 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/Makefile')
-rw-r--r--package/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/Makefile b/package/Makefile
index aa059a7d23..1df4537dba 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -35,6 +35,7 @@ $(curdir)/rootfs-prepare: $(TMP_DIR)/.build
@-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf
@-find $(TARGET_DIR) -name .svn | $(XARGS) rm -rf
@-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f
+ $(if $(CONFIG_CLEAN_IPKG),rm -rf $(TARGET_DIR)/usr/lib/ipkg)
$(curdir)/index: FORCE
@(cd $(PACKAGE_DIR); $(SCRIPT_DIR)/ipkg-make-index.sh . > Packages)