diff options
author | Jiri Olsa <jolsa@redhat.com> | 2013-12-19 08:42:07 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-12-19 14:18:12 -0500 |
commit | 4c7aafc950178cd78f8cbda916ee8208afe039b5 (patch) | |
tree | 5bd1c9253a7cf63e22dbe391bbaf38e329bb44f9 /tools/lib | |
parent | 4a953c716af285c94432e2d303ca5ee8f66129c0 (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/Makefile | 13 |
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") | |||
83 | endif | 83 | endif |
84 | 84 | ||
85 | ifeq ($(BUILD_SRC),) | 85 | ifeq ($(BUILD_SRC),) |
86 | ifneq ($(BUILD_OUTPUT),) | 86 | ifneq ($(OUTPUT),) |
87 | 87 | ||
88 | define build_output | 88 | define 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 |
91 | endef | 91 | endef |
92 | 92 | ||
93 | saved-output := $(BUILD_OUTPUT) | ||
94 | BUILD_OUTPUT := $(shell cd $(BUILD_OUTPUT) && /bin/pwd) | ||
95 | $(if $(BUILD_OUTPUT),, \ | ||
96 | $(error output directory "$(saved-output)" does not exist)) | ||
97 | |||
98 | all: sub-make | 93 | all: 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 |
107 | skip-makefile := 1 | 102 | skip-makefile := 1 |
108 | 103 | ||
109 | endif # BUILD_OUTPUT | 104 | endif # OUTPUT |
110 | endif # BUILD_SRC | 105 | endif # 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 |