aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-12-19 08:42:07 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-12-19 14:18:12 -0500
commit4c7aafc950178cd78f8cbda916ee8208afe039b5 (patch)
tree5bd1c9253a7cf63e22dbe391bbaf38e329bb44f9 /tools/lib
parent4a953c716af285c94432e2d303ca5ee8f66129c0 (diff)
tools lib traceevent: Use global 'O' processing code
Using global 'O' processing code because it's already setup due to the scripts/Makefile.include include. Using global variable OUTPUT instead of the local BUILD_OUTPUT. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1387460527-15030-10-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/traceevent/Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
index 3496c9ce84d4..ca4ab78425d1 100644
--- a/tools/lib/traceevent/Makefile
+++ b/tools/lib/traceevent/Makefile
@@ -83,18 +83,13 @@ ifeq ("$(origin O)", "command line")
83endif 83endif
84 84
85ifeq ($(BUILD_SRC),) 85ifeq ($(BUILD_SRC),)
86ifneq ($(BUILD_OUTPUT),) 86ifneq ($(OUTPUT),)
87 87
88define build_output 88define build_output
89 $(if $(VERBOSE:1=),@)+$(MAKE) -C $(BUILD_OUTPUT) \ 89 $(if $(VERBOSE:1=),@)+$(MAKE) -C $(OUTPUT) \
90 BUILD_SRC=$(CURDIR) -f $(CURDIR)/Makefile $1 90 BUILD_SRC=$(CURDIR)/ -f $(CURDIR)/Makefile $1
91endef 91endef
92 92
93saved-output := $(BUILD_OUTPUT)
94BUILD_OUTPUT := $(shell cd $(BUILD_OUTPUT) && /bin/pwd)
95$(if $(BUILD_OUTPUT),, \
96 $(error output directory "$(saved-output)" does not exist))
97
98all: sub-make 93all: sub-make
99 94
100$(MAKECMDGOALS): sub-make 95$(MAKECMDGOALS): sub-make
@@ -106,7 +101,7 @@ sub-make: force
106# Leave processing to above invocation of make 101# Leave processing to above invocation of make
107skip-makefile := 1 102skip-makefile := 1
108 103
109endif # BUILD_OUTPUT 104endif # OUTPUT
110endif # BUILD_SRC 105endif # BUILD_SRC
111 106
112# We process the rest of the Makefile if this is the final invocation of make 107# We process the rest of the Makefile if this is the final invocation of make