new target "make clean-pkg" to remove all unused package files (handy after a successful "make update")

This commit is contained in:
Volker Grabsch 2009-02-09 09:38:45 +01:00
parent afaff868a5
commit 2cf9e932a7
2 changed files with 11 additions and 0 deletions

View File

@ -88,6 +88,13 @@ strip:
clean:
rm -rf $(call TMP_DIR,*) $(PREFIX)/*
.PHONY: clean-pkg
clean-pkg:
rm -f $(patsubst %,'%', \
$(filter-out \
$(foreach PKG,$(PKG_RULES),$(PKG_DIR)/$($(PKG)_FILE)), \
$(wildcard $(PKG_DIR)/*)))
.PHONY: update
define UPDATE
$(if $(2), \

View File

@ -44,6 +44,10 @@ Usage
remove all package builds,
use with caution!
make clean-pkg
remove all unused package files
make update
update the version numbers of all packages,