diff options
-rw-r--r-- | tools/perf/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 67a9f4d805d..d1984ee5df6 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -325,9 +325,9 @@ SCRIPT_SH += perf-archive.sh | |||
325 | grep-libs = $(filter -l%,$(1)) | 325 | grep-libs = $(filter -l%,$(1)) |
326 | strip-libs = $(filter-out -l%,$(1)) | 326 | strip-libs = $(filter-out -l%,$(1)) |
327 | 327 | ||
328 | pyrf: $(PYRF_OBJS) | 328 | $(OUTPUT)python/perf.so: $(PYRF_OBJS) |
329 | python util/setup.py build --build-base='$(OUTPUT)' | 329 | @python util/setup.py --quiet build_ext --build-lib='$(OUTPUT)python' \ |
330 | 330 | --build-temp='$(OUTPUT)python/temp' | |
331 | # | 331 | # |
332 | # No Perl scripts right now: | 332 | # No Perl scripts right now: |
333 | # | 333 | # |
@@ -348,12 +348,14 @@ PROGRAMS += $(EXTRA_PROGRAMS) | |||
348 | # | 348 | # |
349 | PROGRAMS += $(OUTPUT)perf | 349 | PROGRAMS += $(OUTPUT)perf |
350 | 350 | ||
351 | LANG_BINDINGS = $(OUTPUT)python/perf.so | ||
352 | |||
351 | # List built-in command $C whose implementation cmd_$C() is not in | 353 | # List built-in command $C whose implementation cmd_$C() is not in |
352 | # builtin-$C.o but is linked in as part of some other command. | 354 | # builtin-$C.o but is linked in as part of some other command. |
353 | # | 355 | # |
354 | 356 | ||
355 | # what 'all' will build and 'install' will install, in perfexecdir | 357 | # what 'all' will build and 'install' will install, in perfexecdir |
356 | ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS) pyrf | 358 | ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS) $(LANG_BINDINGS) |
357 | 359 | ||
358 | # what 'all' will build but not install in perfexecdir | 360 | # what 'all' will build but not install in perfexecdir |
359 | OTHER_PROGRAMS = $(OUTPUT)perf$X | 361 | OTHER_PROGRAMS = $(OUTPUT)perf$X |
@@ -1298,6 +1300,8 @@ clean: | |||
1298 | $(RM) $(htmldocs).tar.gz $(manpages).tar.gz | 1300 | $(RM) $(htmldocs).tar.gz $(manpages).tar.gz |
1299 | $(MAKE) -C Documentation/ clean | 1301 | $(MAKE) -C Documentation/ clean |
1300 | $(RM) $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)PERF-CFLAGS $(OUTPUT)PERF-BUILD-OPTIONS | 1302 | $(RM) $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)PERF-CFLAGS $(OUTPUT)PERF-BUILD-OPTIONS |
1303 | @python util/setup.py clean --build-lib='$(OUTPUT)python' \ | ||
1304 | --build-temp='$(OUTPUT)python/temp' | ||
1301 | 1305 | ||
1302 | .PHONY: all install clean strip | 1306 | .PHONY: all install clean strip |
1303 | .PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell | 1307 | .PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell |