From eace04e2e704651a09a715d97e18b1625d709df1 Mon Sep 17 00:00:00 2001 From: Jamie Strandboge Date: Thu, 5 Aug 2010 16:00:23 -0500 Subject: [PATCH] profiles/Makefile: use LOCAL_ADDITIONS using filter-out in clean target, which is much cleaner. --- profiles/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/profiles/Makefile b/profiles/Makefile index eda68c78a..2dd023754 100644 --- a/profiles/Makefile +++ b/profiles/Makefile @@ -65,13 +65,10 @@ install: local install -m 644 ${EXTRAS_SOURCE}/* ${EXTRAS_DEST} install -m 644 ${PROFILES_SOURCE}/local/* ${PROFILES_DEST}/local +LOCAL_ADDITIONS=$(filter-out ${PROFILES_SOURCE}/local/README, $(wildcard ${PROFILES_SOURCE}/local/*)) .PHONY: clean clean: - -rm -f $(NAME)-$(VERSION)*.tar.gz Make.rules - for profile in ${PROFILES_TO_COPY}; do \ - fn=$$(basename $$profile); \ - rm -f ${PROFILES_SOURCE}/local/$$fn; \ - done; \ + -rm -f $(NAME)-$(VERSION)*.tar.gz Make.rules ${LOCAL_ADDITIONS} ifndef VERBOSE Q=@