Mercurial > mxe-octave
changeset 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 | 1330f7f6686d |
children | e64703523d34 |
files | Makefile doc/README |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
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), \