Don't require mk/config.mk for all cleanup targets
authorHerbert Valerio Riedel <hvr@gnu.org>
Sun, 27 Apr 2014 17:15:16 +0000 (19:15 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sun, 27 Apr 2014 17:15:16 +0000 (19:15 +0200)
`make clean` did already ignore a missing mk/config.mk,
but `make distclean` and `make maintainer-clean` didn't.
This commit rectifies this oversight.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Makefile

index e5a7fb8..c4cce6d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ default : all
 help:
        @cat MAKEHELP
 
-ifneq "$(filter clean help,$(MAKECMDGOALS))" ""
+ifneq "$(filter maintainer-clean distclean clean help,$(MAKECMDGOALS))" ""
 -include mk/config.mk
 else
 include mk/config.mk