diff Makefile @ 226:c07a36f3ea80

new target "make clean-pkg" to remove all unused package files (handy after a successful "make update")
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 09 Feb 2009 09:38:45 +0100
parents 898425550c29
children f3fcee0067eb
line wrap: on
line diff
--- a/Makefile	Sat Feb 07 05:04:49 2009 +0100
+++ b/Makefile	Mon Feb 09 09:38:45 2009 +0100
@@ -88,6 +88,13 @@
 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), \