summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-15 14:56:07 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-15 14:56:07 (EDT)
commit2bb3dcac65b12863e3708a2aae99014f7dbc2739 (patch)
treeb6553e4c658748140d44007df8903cf8846a4da1
parent6b721d0900be3ee1aae1c62e9cccf2ed8c81a0c4 (diff)
Makefile.in: Make clean target non-recursive.
-rw-r--r--Makefile.in34
1 files changed, 23 insertions, 11 deletions
diff --git a/Makefile.in b/Makefile.in
index 2612155..d46e2c2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -142,17 +142,29 @@ all-man1: $(man1)
all-man3: $(man3)
all-locale: $(locale)
-clean:
- @printf 'Cleaning executable files...\n'
- @cd src && $(MAKE) $(MACROS) clean
- @printf 'Cleaning library files...\n'
- @cd lib && $(MAKE) $(MACROS) clean
- @cd lib/package && $(MAKE) $(MACROS) clean
- @cd lib/metadata && $(MAKE) $(MACROS) clean
- @printf 'Cleaning locales...\n'
- @cd locale && $(MAKE) $(MACROS) clean
- @printf 'Cleaning manual pages...\n'
- @cd man && $(MAKE) $(MACROS) clean
+clean_cmds = \
+ set -e; \
+ for f in $${files}; do \
+ printf ' RM %s\n' "$${f}"; \
+ rm -f "$${f}"; \
+ done
+clean: clean-exec clean-data
+clean-exec: clean-bin clean-pkglib clean-pkglibpackage clean-pkglibmetadata
+clean-bin:
+ @files='$(bin)'; $(clean_cmds)
+clean-pkglib:
+ @files='$(pkglib)'; $(clean_cmds)
+clean-pkglibpackage:
+ @files='$(pkglibpackage)'; $(clean_cmds)
+clean-pkglibmetadata:
+ @files='$(pkglibmetadata)'; $(clean_cmds)
+clean-data: clean-man1 clean-man3 clean-locale
+clean-man1:
+ @files='$(man1)'; $(clean_cmds)
+clean-man3:
+ @files='$(man3)'; $(clean_cmds)
+clean-locale:
+ @files='$(locale)'; $(clean_cmds)
install: all
@printf 'Installing executable files...\n'