Browse code

makefile: quiet output by default

Quiet output is used now by default. For verbose output one can
either add Q=0 /Q=no/ Q=verbose to the make command line
(e.g. make Q=verbose all) or for a more permanent solution one can
run make config with Q set (e.g. make config Q=0).

Andrei Pelinescu-Onciul authored on 15/06/2010 15:26:07
Showing 2 changed files
... ...
@@ -78,7 +78,9 @@
78 78
 #               needed to generate dependencies on-the-fly while compiling
79 79
 #               or is empty if the compiler doesn't support it (andrei)
80 80
 
81
-quiet?=$(if $(filter 1 yes on,$(Q)),silent,verbose)
81
+
82
+# default silent, unless Q= 0|no|off|verbose|noisy
83
+quiet?=$(if $(filter 0 no off verbose noisy,$(Q)),verbose,silent)
82 84
 
83 85
 # check if already included/exported
84 86
 
... ...
@@ -81,17 +81,17 @@ endif # CC_MKDEP_OPTS
81 81
 silent_cmd_CC=CC ($(CC)) [$(strip $(crt_type) $(NAME))]		$@
82 82
 silent_cmd_LD=LD ($(LD)) [$(strip $(crt_type) $(NAME))]		$@
83 83
 
84
-ifneq (,$(filter 1 yes on, $(Q) $(QUIET)))
84
+ifneq (,$(filter 0 no off verbose noisy, $(Q) $(QUIET)))
85
+override Q:=
86
+quiet=verbose
87
+#shell optional print
88
+oecho=echo $(1)
89
+else
85 90
 quiet=silent
86 91
 Q=1
87 92
 MAKE+= --no-print-directory
88 93
 #shell optional print
89 94
 oecho=
90
-else
91
-override Q:=
92
-quiet=verbose
93
-#shell optional print
94
-oecho=echo $(1)
95 95
 endif
96 96
 
97 97
 module_make=	if [ -n "$(1)" -a -r "$(1)/Makefile" ]; then \