diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-08-09 10:44:27 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-08-09 10:44:27 -0400 |
commit | e710574de10b181c159a67af75af0245de33a4b9 (patch) | |
tree | 292aeb4ab31d7e954c146b8b00829c67501fd0d6 /tools/perf/Makefile | |
parent | a34668f6beb4ab01e07683276d6a24bab6c175e0 (diff) | |
parent | 9941c96ad869d10f7e34e03990ce450ab8fcb83d (diff) |
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 56d62d3fb167..3b8f7b80376b 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -181,9 +181,9 @@ strip-libs = $(filter-out -l%,$(1)) | |||
181 | 181 | ||
182 | $(OUTPUT)python/perf.so: $(PYRF_OBJS) | 182 | $(OUTPUT)python/perf.so: $(PYRF_OBJS) |
183 | $(QUIET_GEN)CFLAGS='$(BASIC_CFLAGS)' $(PYTHON_WORD) util/setup.py \ | 183 | $(QUIET_GEN)CFLAGS='$(BASIC_CFLAGS)' $(PYTHON_WORD) util/setup.py \ |
184 | --quiet build_ext \ | 184 | --quiet build_ext; \ |
185 | --build-lib='$(OUTPUT)python' \ | 185 | mkdir -p $(OUTPUT)python && \ |
186 | --build-temp='$(OUTPUT)python/temp' | 186 | cp $(PYTHON_EXTBUILD_LIB)perf.so $(OUTPUT)python/ |
187 | # | 187 | # |
188 | # No Perl scripts right now: | 188 | # No Perl scripts right now: |
189 | # | 189 | # |
@@ -509,9 +509,13 @@ else | |||
509 | 509 | ||
510 | PYTHON_WORD := $(call shell-wordify,$(PYTHON)) | 510 | PYTHON_WORD := $(call shell-wordify,$(PYTHON)) |
511 | 511 | ||
512 | python-clean := $(PYTHON_WORD) util/setup.py clean \ | 512 | # python extension build directories |
513 | --build-lib='$(OUTPUT)python' \ | 513 | PYTHON_EXTBUILD := $(OUTPUT)python_ext_build/ |
514 | --build-temp='$(OUTPUT)python/temp' | 514 | PYTHON_EXTBUILD_LIB := $(PYTHON_EXTBUILD)lib/ |
515 | PYTHON_EXTBUILD_TMP := $(PYTHON_EXTBUILD)tmp/ | ||
516 | export PYTHON_EXTBUILD_LIB PYTHON_EXTBUILD_TMP | ||
517 | |||
518 | python-clean := rm -rf $(PYTHON_EXTBUILD) $(OUTPUT)python/perf.so | ||
515 | 519 | ||
516 | ifdef NO_LIBPYTHON | 520 | ifdef NO_LIBPYTHON |
517 | $(call disable-python) | 521 | $(call disable-python) |
@@ -868,6 +872,9 @@ install: all | |||
868 | $(INSTALL) scripts/python/*.py -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python' | 872 | $(INSTALL) scripts/python/*.py -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python' |
869 | $(INSTALL) scripts/python/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin' | 873 | $(INSTALL) scripts/python/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin' |
870 | 874 | ||
875 | install-python_ext: | ||
876 | $(PYTHON_WORD) util/setup.py --quiet install --root='/$(DESTDIR_SQ)' | ||
877 | |||
871 | install-doc: | 878 | install-doc: |
872 | $(MAKE) -C Documentation install | 879 | $(MAKE) -C Documentation install |
873 | 880 | ||
@@ -895,7 +902,7 @@ quick-install-html: | |||
895 | ### Cleaning rules | 902 | ### Cleaning rules |
896 | 903 | ||
897 | clean: | 904 | clean: |
898 | $(RM) $(OUTPUT){*.o,*/*.o,*/*/*.o,*/*/*/*.o,$(LIB_FILE),perf-archive} | 905 | $(RM) $(LIB_OBJS) $(BUILTIN_OBJS) $(LIB_FILE) $(OUTPUT)perf-archive $(OUTPUT)perf.o $(LANG_BINDINGS) |
899 | $(RM) $(ALL_PROGRAMS) perf | 906 | $(RM) $(ALL_PROGRAMS) perf |
900 | $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope* | 907 | $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope* |
901 | $(MAKE) -C Documentation/ clean | 908 | $(MAKE) -C Documentation/ clean |