summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 168d62a3a2..8b9c5d9141 100644
--- a/Makefile
+++ b/Makefile
@@ -25,15 +25,15 @@
#--------------------------------------------------------------
# Trick for always running with a fixed umask
-UMASK=0022
+UMASK = 0022
ifneq ($(shell umask),$(UMASK))
-.PHONY: all $(MAKECMDGOALS)
+.PHONY: _all $(MAKECMDGOALS)
-all:
- @umask $(UMASK) && $(MAKE) --no-print-directory
+$(MAKECMDGOALS): _all
+ @:
-$(MAKECMDGOALS):
- @umask $(UMASK) && $(MAKE) --no-print-directory $@
+_all:
+ @umask $(UMASK) && $(MAKE) --no-print-directory $(MAKECMDGOALS)
else # umask
OpenPOWER on IntegriCloud