diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 35655c3a7b7a..2d4bf6ef1c5a 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -186,10 +186,10 @@ SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) | |||
186 | 186 | ||
187 | TRACE_EVENT_DIR = ../lib/traceevent/ | 187 | TRACE_EVENT_DIR = ../lib/traceevent/ |
188 | 188 | ||
189 | ifeq ("$(origin O)", "command line") | 189 | ifneq ($(OUTPUT),) |
190 | TE_PATH=$(OUTPUT)/ | 190 | TE_PATH=$(OUTPUT) |
191 | else | 191 | else |
192 | TE_PATH=$(TRACE_EVENT_DIR)/ | 192 | TE_PATH=$(TRACE_EVENT_DIR) |
193 | endif | 193 | endif |
194 | 194 | ||
195 | LIBTRACEEVENT = $(TE_PATH)libtraceevent.a | 195 | LIBTRACEEVENT = $(TE_PATH)libtraceevent.a |
@@ -842,7 +842,7 @@ $(LIB_FILE): $(LIB_OBJS) | |||
842 | 842 | ||
843 | # libtraceevent.a | 843 | # libtraceevent.a |
844 | $(LIBTRACEEVENT): | 844 | $(LIBTRACEEVENT): |
845 | $(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) $(COMMAND_O) libtraceevent.a | 845 | $(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) O=$(OUTPUT) libtraceevent.a |
846 | 846 | ||
847 | help: | 847 | help: |
848 | @echo 'Perf make targets:' | 848 | @echo 'Perf make targets:' |