diff options
Diffstat (limited to 'scripts/mkmakefile')
| -rw-r--r-- | scripts/mkmakefile | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile index 5325423ceab..84af27bf0f9 100644 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile @@ -30,23 +30,23 @@ PATCHLEVEL = $4 lastword = \$(word \$(words \$(1)),\$(1)) makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST))) +ifeq ("\$(origin V)", "command line") +VERBOSE := \$(V) +endif +ifneq (\$(VERBOSE),1) +Q := @ +endif + MAKEARGS := -C $1 MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$(makedir)) MAKEFLAGS += --no-print-directory -.PHONY: all \$(MAKECMDGOALS) - -all := \$(filter-out all Makefile,\$(MAKECMDGOALS)) - -all: - \$(MAKE) \$(MAKEARGS) \$(all) +.PHONY: __sub-make \$(MAKECMDGOALS) -Makefile:; - -\$(all): all - @: +__sub-make: + \$(Q)\$(MAKE) \$(MAKEARGS) \$(MAKECMDGOALS) -%/: all +\$(filter-out __sub-make, \$(MAKECMDGOALS)): __sub-make @: EOF |
