mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
profiles/Makefile: use LOCAL_ADDITIONS using filter-out in clean target, which
is much cleaner.
This commit is contained in:
@@ -65,13 +65,10 @@ install: local
|
|||||||
install -m 644 ${EXTRAS_SOURCE}/* ${EXTRAS_DEST}
|
install -m 644 ${EXTRAS_SOURCE}/* ${EXTRAS_DEST}
|
||||||
install -m 644 ${PROFILES_SOURCE}/local/* ${PROFILES_DEST}/local
|
install -m 644 ${PROFILES_SOURCE}/local/* ${PROFILES_DEST}/local
|
||||||
|
|
||||||
|
LOCAL_ADDITIONS=$(filter-out ${PROFILES_SOURCE}/local/README, $(wildcard ${PROFILES_SOURCE}/local/*))
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
-rm -f $(NAME)-$(VERSION)*.tar.gz Make.rules
|
-rm -f $(NAME)-$(VERSION)*.tar.gz Make.rules ${LOCAL_ADDITIONS}
|
||||||
for profile in ${PROFILES_TO_COPY}; do \
|
|
||||||
fn=$$(basename $$profile); \
|
|
||||||
rm -f ${PROFILES_SOURCE}/local/$$fn; \
|
|
||||||
done; \
|
|
||||||
|
|
||||||
ifndef VERBOSE
|
ifndef VERBOSE
|
||||||
Q=@
|
Q=@
|
||||||
|
Reference in New Issue
Block a user