diff options
Diffstat (limited to 'scripts/mkmakefile')
| -rw-r--r-- | scripts/mkmakefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile index 67d59c7a18d..84af27bf0f9 100644 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile @@ -30,21 +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)) +.PHONY: __sub-make \$(MAKECMDGOALS) -all: - \$(MAKE) \$(MAKEARGS) \$(all) +__sub-make: + \$(Q)\$(MAKE) \$(MAKEARGS) \$(MAKECMDGOALS) -Makefile:; - -\$(all) %/: all +\$(filter-out __sub-make, \$(MAKECMDGOALS)): __sub-make @: - EOF |
