Skip to contentSkip to conversation

perf build: Display make commands on V=1

tip:perf/core tip-bot for Jiri Olsa 1 participant 1 message Feb 18, 2015 perf events

lore
Share & tools
lore

tip-bot for Jiri Olsa

author merge bot
#0 lore raw
Commit-ID:  ceed252fe0b8b7975845ed4cb9e6069d8a12f233
Gitweb:     http://git.kernel.org/tip/ceed252fe0b8b7975845ed4cb9e6069d8a12f233
Author:     Jiri Olsa <[email protected]>
AuthorDate: Sun, 11 Jan 2015 23:59:55 +0100
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 12 Feb 2015 17:57:10 -0300

perf build: Display make commands on V=1

Get more verbose output wrt displaying executed commands from make.

---
 tools/build/Makefile.build |  4 +++-
 tools/perf/Makefile.perf   | 48 ++++++++++++++++++++++++++--------------------
 2 files changed, 30 insertions(+), 22 deletions(-)
tools/build/Makefile.build +3 -1
index b5ded20..10df572 100644
@@ -13,8 +13,10 @@ __build:
 
 ifeq ($(V),1)
   quiet =
+  Q =
 else
   quiet=quiet_
+  Q=@
 endif
 
 build-dir := $(srctree)/tools/build
@@ -102,7 +104,7 @@ in-target := $(prefix)$(obj)-in.o
 PHONY += $(subdir-y)
 
 $(subdir-y):
-	@$(MAKE) -f $(build-dir)/Makefile.build dir=$(dir)/$@ obj=$(obj)
+	$(Q)$(MAKE) -f $(build-dir)/Makefile.build dir=$(dir)/$@ obj=$(obj)
 
 $(sort $(subdir-obj-y)): $(subdir-y) ;
 
tools/perf/Makefile.perf +27 -21

125 lines not on this page · raw message