X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/15f12f44a82318e411610fce61f404a2653ca267..31d94a76a79ef8c973fb75ee17713593bfb7ebbd:/include/verbose.mk diff --git a/include/verbose.mk b/include/verbose.mk index 16a75c08c..525fbf1c1 100644 --- a/include/verbose.mk +++ b/include/verbose.mk @@ -6,13 +6,16 @@ # # $Id:$ -NO_TRACE_MAKE:=$(MAKE) V=99 +ifeq ($(NO_TRACE_MAKE),) +NO_TRACE_MAKE := $(MAKE) V=99 +export NO_TRACE_MAKE +endif ifndef KBUILD_VERBOSE - KBUILD_VERBOSE=0 - ifdef V - KBUILD_VERBOSE=$(V) - endif + KBUILD_VERBOSE:=0 +endif +ifeq ("$(origin V)", "command line") + KBUILD_VERBOSE:=$(V) endif ifneq ($(KBUILD_VERBOSE),99) @@ -32,6 +35,4 @@ ifneq ($(KBUILD_VERBOSE),99) endif .SILENT: $(MAKECMDGOALS) -else - NO_TRACE_MAKE:=$(MAKE) endif