summaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk18
1 files changed, 16 insertions, 2 deletions
diff --git a/rules.mk b/rules.mk
index 417dae7de..d94a81844 100644
--- a/rules.mk
+++ b/rules.mk
@@ -5,9 +5,23 @@ endif
SHELL=/bin/bash
export SHELL
-ifeq ($(V),)
-V=5
+ifdef V
+ ifeq ("$(origin V)", "command line")
+ KBUILD_VERBOSE = $(V)
+ endif
endif
+ifndef KBUILD_VERBOSE
+ KBUILD_VERBOSE = 0
+endif
+
+ifneq ($(KBUILD_VERBOSE),0)
+ quiet =
+ Q =
+else
+ quiet=quiet_
+ Q = @
+endif
+
CP=cp -fpR
MAKE1=make