add option for cleaning all ipkg info before the image build

SVN-Revision: 9151
This commit is contained in:
Felix Fietkau
2007-10-05 21:52:05 +00:00
parent e2e8d55dcc
commit 21a246d5d6
2 changed files with 12 additions and 3 deletions

View File

@@ -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)