If the user ran 'make -n' then we will already print all commands. Signed-off-by: Vegard Nossum <vegard.nossum@xxxxxxxxxx> --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d08ade5791c2e..a1a3e96a10ea2 100644 --- a/Makefile +++ b/Makefile @@ -96,9 +96,10 @@ ifneq ($(findstring 1, $(KBUILD_VERBOSE)),) Q = endif -# If the user is running make -s (silent mode), suppress echoing of -# commands -ifneq ($(findstring s,$(firstword -$(MAKEFLAGS))),) +# If the user is running make -s (silent mode) or -n (dry run mode), +# suppress echoing of commands +ifneq (,$(or $(findstring s,$(firstword -$(MAKEFLAGS))), \ + $(findstring n,$(firstword -$(MAKEFLAGS))))) quiet=silent_ override KBUILD_VERBOSE := endif -- 2.34.1