diff options
-rw-r--r-- | Makefile.in | 34 |
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' |