tools: Get only verbose output with V=1

Fix having verbose build with V=0, e.g:

 make V=0 -C tools/ perf

Signed-off-by: Robert Richter <robert.richter@calxeda.com>
Link: http://lkml.kernel.org/r/20130503134953.GU8356@rric.localhost
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Robert Richter 2013-05-03 15:49:53 +02:00 committed by Arnaldo Carvalho de Melo
parent e5302920da
commit 5125bc22e7
3 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ NO_SUBDIR = :
endif endif
ifneq ($(findstring $(MAKEFLAGS),s),s) ifneq ($(findstring $(MAKEFLAGS),s),s)
ifndef V ifneq ($(V),1)
QUIET_ASCIIDOC = @echo ' ' ASCIIDOC $@; QUIET_ASCIIDOC = @echo ' ' ASCIIDOC $@;
QUIET_XMLTO = @echo ' ' XMLTO $@; QUIET_XMLTO = @echo ' ' XMLTO $@;
QUIET_DB2TEXI = @echo ' ' DB2TEXI $@; QUIET_DB2TEXI = @echo ' ' DB2TEXI $@;

View File

@ -181,7 +181,7 @@ _gea_err = $(if $(1),$(error Please set '$(1)' appropriately))
# try-cc # try-cc
# Usage: option = $(call try-cc, source-to-build, cc-options, msg) # Usage: option = $(call try-cc, source-to-build, cc-options, msg)
ifndef V ifneq ($(V),1)
TRY_CC_OUTPUT= > /dev/null 2>&1 TRY_CC_OUTPUT= > /dev/null 2>&1
endif endif
TRY_CC_MSG=echo " CHK $(3)" 1>&2; TRY_CC_MSG=echo " CHK $(3)" 1>&2;

View File

@ -59,7 +59,7 @@ QUIET_SUBDIR0 = +$(MAKE) $(COMMAND_O) -C # space to separate -C and subdir
QUIET_SUBDIR1 = QUIET_SUBDIR1 =
ifneq ($(findstring $(MAKEFLAGS),s),s) ifneq ($(findstring $(MAKEFLAGS),s),s)
ifndef V ifneq ($(V),1)
QUIET_CC = @echo ' ' CC $@; QUIET_CC = @echo ' ' CC $@;
QUIET_AR = @echo ' ' AR $@; QUIET_AR = @echo ' ' AR $@;
QUIET_LINK = @echo ' ' LINK $@; QUIET_LINK = @echo ' ' LINK $@;