diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 104 |
1 files changed, 70 insertions, 34 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 8ab05e543ef4..a2108ca1cc17 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -47,10 +47,11 @@ include config/utilities.mak | |||
47 | # backtrace post unwind. | 47 | # backtrace post unwind. |
48 | # | 48 | # |
49 | # Define NO_BACKTRACE if you do not want stack backtrace debug feature | 49 | # Define NO_BACKTRACE if you do not want stack backtrace debug feature |
50 | # | ||
51 | # Define NO_LIBNUMA if you do not want numa perf benchmark | ||
50 | 52 | ||
51 | $(OUTPUT)PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE | 53 | $(OUTPUT)PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE |
52 | @$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT) | 54 | @$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT) |
53 | -include $(OUTPUT)PERF-VERSION-FILE | ||
54 | 55 | ||
55 | uname_M := $(shell uname -m 2>/dev/null || echo not) | 56 | uname_M := $(shell uname -m 2>/dev/null || echo not) |
56 | 57 | ||
@@ -148,13 +149,25 @@ RM = rm -f | |||
148 | MKDIR = mkdir | 149 | MKDIR = mkdir |
149 | FIND = find | 150 | FIND = find |
150 | INSTALL = install | 151 | INSTALL = install |
152 | FLEX = flex | ||
153 | BISON= bison | ||
151 | 154 | ||
152 | # sparse is architecture-neutral, which means that we need to tell it | 155 | # sparse is architecture-neutral, which means that we need to tell it |
153 | # explicitly what architecture to check for. Fix this up for yours.. | 156 | # explicitly what architecture to check for. Fix this up for yours.. |
154 | SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__ | 157 | SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__ |
155 | 158 | ||
159 | ifneq ($(MAKECMDGOALS),clean) | ||
160 | ifneq ($(MAKECMDGOALS),tags) | ||
156 | -include config/feature-tests.mak | 161 | -include config/feature-tests.mak |
157 | 162 | ||
163 | ifeq ($(call get-executable,$(FLEX)),) | ||
164 | dummy := $(error Error: $(FLEX) is missing on this system, please install it) | ||
165 | endif | ||
166 | |||
167 | ifeq ($(call get-executable,$(BISON)),) | ||
168 | dummy := $(error Error: $(BISON) is missing on this system, please install it) | ||
169 | endif | ||
170 | |||
158 | ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -fstack-protector-all,-fstack-protector-all),y) | 171 | ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -fstack-protector-all,-fstack-protector-all),y) |
159 | CFLAGS := $(CFLAGS) -fstack-protector-all | 172 | CFLAGS := $(CFLAGS) -fstack-protector-all |
160 | endif | 173 | endif |
@@ -206,6 +219,8 @@ ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y) | |||
206 | EXTLIBS := $(filter-out -lpthread,$(EXTLIBS)) | 219 | EXTLIBS := $(filter-out -lpthread,$(EXTLIBS)) |
207 | BASIC_CFLAGS += -I. | 220 | BASIC_CFLAGS += -I. |
208 | endif | 221 | endif |
222 | endif # MAKECMDGOALS != tags | ||
223 | endif # MAKECMDGOALS != clean | ||
209 | 224 | ||
210 | # Guard against environment variables | 225 | # Guard against environment variables |
211 | BUILTIN_OBJS = | 226 | BUILTIN_OBJS = |
@@ -230,11 +245,19 @@ endif | |||
230 | LIBTRACEEVENT = $(TE_PATH)libtraceevent.a | 245 | LIBTRACEEVENT = $(TE_PATH)libtraceevent.a |
231 | TE_LIB := -L$(TE_PATH) -ltraceevent | 246 | TE_LIB := -L$(TE_PATH) -ltraceevent |
232 | 247 | ||
248 | export LIBTRACEEVENT | ||
249 | |||
250 | # python extension build directories | ||
251 | PYTHON_EXTBUILD := $(OUTPUT)python_ext_build/ | ||
252 | PYTHON_EXTBUILD_LIB := $(PYTHON_EXTBUILD)lib/ | ||
253 | PYTHON_EXTBUILD_TMP := $(PYTHON_EXTBUILD)tmp/ | ||
254 | export PYTHON_EXTBUILD_LIB PYTHON_EXTBUILD_TMP | ||
255 | |||
256 | python-clean := rm -rf $(PYTHON_EXTBUILD) $(OUTPUT)python/perf.so | ||
257 | |||
233 | PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources) | 258 | PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources) |
234 | PYTHON_EXT_DEPS := util/python-ext-sources util/setup.py | 259 | PYTHON_EXT_DEPS := util/python-ext-sources util/setup.py |
235 | 260 | ||
236 | export LIBTRACEEVENT | ||
237 | |||
238 | $(OUTPUT)python/perf.so: $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS) | 261 | $(OUTPUT)python/perf.so: $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS) |
239 | $(QUIET_GEN)CFLAGS='$(BASIC_CFLAGS)' $(PYTHON_WORD) util/setup.py \ | 262 | $(QUIET_GEN)CFLAGS='$(BASIC_CFLAGS)' $(PYTHON_WORD) util/setup.py \ |
240 | --quiet build_ext; \ | 263 | --quiet build_ext; \ |
@@ -269,20 +292,17 @@ endif | |||
269 | 292 | ||
270 | export PERL_PATH | 293 | export PERL_PATH |
271 | 294 | ||
272 | FLEX = flex | ||
273 | BISON= bison | ||
274 | |||
275 | $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c | 295 | $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c |
276 | $(QUIET_FLEX)$(FLEX) --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) -t util/parse-events.l > $(OUTPUT)util/parse-events-flex.c | 296 | $(QUIET_FLEX)$(FLEX) --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) -t util/parse-events.l > $(OUTPUT)util/parse-events-flex.c |
277 | 297 | ||
278 | $(OUTPUT)util/parse-events-bison.c: util/parse-events.y | 298 | $(OUTPUT)util/parse-events-bison.c: util/parse-events.y |
279 | $(QUIET_BISON)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $(OUTPUT)util/parse-events-bison.c | 299 | $(QUIET_BISON)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $(OUTPUT)util/parse-events-bison.c -p parse_events_ |
280 | 300 | ||
281 | $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c | 301 | $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c |
282 | $(QUIET_FLEX)$(FLEX) --header-file=$(OUTPUT)util/pmu-flex.h -t util/pmu.l > $(OUTPUT)util/pmu-flex.c | 302 | $(QUIET_FLEX)$(FLEX) --header-file=$(OUTPUT)util/pmu-flex.h -t util/pmu.l > $(OUTPUT)util/pmu-flex.c |
283 | 303 | ||
284 | $(OUTPUT)util/pmu-bison.c: util/pmu.y | 304 | $(OUTPUT)util/pmu-bison.c: util/pmu.y |
285 | $(QUIET_BISON)$(BISON) -v util/pmu.y -d -o $(OUTPUT)util/pmu-bison.c | 305 | $(QUIET_BISON)$(BISON) -v util/pmu.y -d -o $(OUTPUT)util/pmu-bison.c -p perf_pmu_ |
286 | 306 | ||
287 | $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c | 307 | $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c |
288 | $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c | 308 | $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c |
@@ -378,8 +398,11 @@ LIB_H += util/rblist.h | |||
378 | LIB_H += util/intlist.h | 398 | LIB_H += util/intlist.h |
379 | LIB_H += util/perf_regs.h | 399 | LIB_H += util/perf_regs.h |
380 | LIB_H += util/unwind.h | 400 | LIB_H += util/unwind.h |
381 | LIB_H += ui/helpline.h | ||
382 | LIB_H += util/vdso.h | 401 | LIB_H += util/vdso.h |
402 | LIB_H += ui/helpline.h | ||
403 | LIB_H += ui/progress.h | ||
404 | LIB_H += ui/util.h | ||
405 | LIB_H += ui/ui.h | ||
383 | 406 | ||
384 | LIB_OBJS += $(OUTPUT)util/abspath.o | 407 | LIB_OBJS += $(OUTPUT)util/abspath.o |
385 | LIB_OBJS += $(OUTPUT)util/alias.o | 408 | LIB_OBJS += $(OUTPUT)util/alias.o |
@@ -453,6 +476,7 @@ LIB_OBJS += $(OUTPUT)util/stat.o | |||
453 | LIB_OBJS += $(OUTPUT)ui/setup.o | 476 | LIB_OBJS += $(OUTPUT)ui/setup.o |
454 | LIB_OBJS += $(OUTPUT)ui/helpline.o | 477 | LIB_OBJS += $(OUTPUT)ui/helpline.o |
455 | LIB_OBJS += $(OUTPUT)ui/progress.o | 478 | LIB_OBJS += $(OUTPUT)ui/progress.o |
479 | LIB_OBJS += $(OUTPUT)ui/util.o | ||
456 | LIB_OBJS += $(OUTPUT)ui/hist.o | 480 | LIB_OBJS += $(OUTPUT)ui/hist.o |
457 | LIB_OBJS += $(OUTPUT)ui/stdio/hist.o | 481 | LIB_OBJS += $(OUTPUT)ui/stdio/hist.o |
458 | 482 | ||
@@ -471,7 +495,8 @@ LIB_OBJS += $(OUTPUT)tests/rdpmc.o | |||
471 | LIB_OBJS += $(OUTPUT)tests/evsel-roundtrip-name.o | 495 | LIB_OBJS += $(OUTPUT)tests/evsel-roundtrip-name.o |
472 | LIB_OBJS += $(OUTPUT)tests/evsel-tp-sched.o | 496 | LIB_OBJS += $(OUTPUT)tests/evsel-tp-sched.o |
473 | LIB_OBJS += $(OUTPUT)tests/pmu.o | 497 | LIB_OBJS += $(OUTPUT)tests/pmu.o |
474 | LIB_OBJS += $(OUTPUT)tests/util.o | 498 | LIB_OBJS += $(OUTPUT)tests/hists_link.o |
499 | LIB_OBJS += $(OUTPUT)tests/python-use.o | ||
475 | 500 | ||
476 | BUILTIN_OBJS += $(OUTPUT)builtin-annotate.o | 501 | BUILTIN_OBJS += $(OUTPUT)builtin-annotate.o |
477 | BUILTIN_OBJS += $(OUTPUT)builtin-bench.o | 502 | BUILTIN_OBJS += $(OUTPUT)builtin-bench.o |
@@ -510,14 +535,13 @@ PERFLIBS = $(LIB_FILE) $(LIBTRACEEVENT) | |||
510 | # | 535 | # |
511 | # Platform specific tweaks | 536 | # Platform specific tweaks |
512 | # | 537 | # |
538 | ifneq ($(MAKECMDGOALS),clean) | ||
539 | ifneq ($(MAKECMDGOALS),tags) | ||
513 | 540 | ||
514 | # We choose to avoid "if .. else if .. else .. endif endif" | 541 | # We choose to avoid "if .. else if .. else .. endif endif" |
515 | # because maintaining the nesting to match is a pain. If | 542 | # because maintaining the nesting to match is a pain. If |
516 | # we had "elif" things would have been much nicer... | 543 | # we had "elif" things would have been much nicer... |
517 | 544 | ||
518 | -include config.mak.autogen | ||
519 | -include config.mak | ||
520 | |||
521 | ifdef NO_LIBELF | 545 | ifdef NO_LIBELF |
522 | NO_DWARF := 1 | 546 | NO_DWARF := 1 |
523 | NO_DEMANGLE := 1 | 547 | NO_DEMANGLE := 1 |
@@ -557,6 +581,11 @@ else | |||
557 | endif # SOURCE_LIBELF | 581 | endif # SOURCE_LIBELF |
558 | endif # NO_LIBELF | 582 | endif # NO_LIBELF |
559 | 583 | ||
584 | # There's only x86 (both 32 and 64) support for CFI unwind so far | ||
585 | ifneq ($(ARCH),x86) | ||
586 | NO_LIBUNWIND := 1 | ||
587 | endif | ||
588 | |||
560 | ifndef NO_LIBUNWIND | 589 | ifndef NO_LIBUNWIND |
561 | # for linking with debug library, run like: | 590 | # for linking with debug library, run like: |
562 | # make DEBUG=1 LIBUNWIND_DIR=/opt/libunwind/ | 591 | # make DEBUG=1 LIBUNWIND_DIR=/opt/libunwind/ |
@@ -646,7 +675,6 @@ ifndef NO_NEWT | |||
646 | LIB_OBJS += $(OUTPUT)ui/browsers/hists.o | 675 | LIB_OBJS += $(OUTPUT)ui/browsers/hists.o |
647 | LIB_OBJS += $(OUTPUT)ui/browsers/map.o | 676 | LIB_OBJS += $(OUTPUT)ui/browsers/map.o |
648 | LIB_OBJS += $(OUTPUT)ui/browsers/scripts.o | 677 | LIB_OBJS += $(OUTPUT)ui/browsers/scripts.o |
649 | LIB_OBJS += $(OUTPUT)ui/util.o | ||
650 | LIB_OBJS += $(OUTPUT)ui/tui/setup.o | 678 | LIB_OBJS += $(OUTPUT)ui/tui/setup.o |
651 | LIB_OBJS += $(OUTPUT)ui/tui/util.o | 679 | LIB_OBJS += $(OUTPUT)ui/tui/util.o |
652 | LIB_OBJS += $(OUTPUT)ui/tui/helpline.o | 680 | LIB_OBJS += $(OUTPUT)ui/tui/helpline.o |
@@ -655,9 +683,6 @@ ifndef NO_NEWT | |||
655 | LIB_H += ui/browsers/map.h | 683 | LIB_H += ui/browsers/map.h |
656 | LIB_H += ui/keysyms.h | 684 | LIB_H += ui/keysyms.h |
657 | LIB_H += ui/libslang.h | 685 | LIB_H += ui/libslang.h |
658 | LIB_H += ui/progress.h | ||
659 | LIB_H += ui/util.h | ||
660 | LIB_H += ui/ui.h | ||
661 | endif | 686 | endif |
662 | endif | 687 | endif |
663 | 688 | ||
@@ -673,14 +698,12 @@ ifndef NO_GTK2 | |||
673 | BASIC_CFLAGS += $(shell pkg-config --cflags gtk+-2.0 2>/dev/null) | 698 | BASIC_CFLAGS += $(shell pkg-config --cflags gtk+-2.0 2>/dev/null) |
674 | EXTLIBS += $(shell pkg-config --libs gtk+-2.0 2>/dev/null) | 699 | EXTLIBS += $(shell pkg-config --libs gtk+-2.0 2>/dev/null) |
675 | LIB_OBJS += $(OUTPUT)ui/gtk/browser.o | 700 | LIB_OBJS += $(OUTPUT)ui/gtk/browser.o |
701 | LIB_OBJS += $(OUTPUT)ui/gtk/hists.o | ||
676 | LIB_OBJS += $(OUTPUT)ui/gtk/setup.o | 702 | LIB_OBJS += $(OUTPUT)ui/gtk/setup.o |
677 | LIB_OBJS += $(OUTPUT)ui/gtk/util.o | 703 | LIB_OBJS += $(OUTPUT)ui/gtk/util.o |
678 | LIB_OBJS += $(OUTPUT)ui/gtk/helpline.o | 704 | LIB_OBJS += $(OUTPUT)ui/gtk/helpline.o |
679 | LIB_OBJS += $(OUTPUT)ui/gtk/progress.o | 705 | LIB_OBJS += $(OUTPUT)ui/gtk/progress.o |
680 | # Make sure that it'd be included only once. | 706 | LIB_OBJS += $(OUTPUT)ui/gtk/annotate.o |
681 | ifeq ($(findstring -DNEWT_SUPPORT,$(BASIC_CFLAGS)),) | ||
682 | LIB_OBJS += $(OUTPUT)ui/util.o | ||
683 | endif | ||
684 | endif | 707 | endif |
685 | endif | 708 | endif |
686 | 709 | ||
@@ -707,7 +730,7 @@ disable-python = $(eval $(disable-python_code)) | |||
707 | define disable-python_code | 730 | define disable-python_code |
708 | BASIC_CFLAGS += -DNO_LIBPYTHON | 731 | BASIC_CFLAGS += -DNO_LIBPYTHON |
709 | $(if $(1),$(warning No $(1) was found)) | 732 | $(if $(1),$(warning No $(1) was found)) |
710 | $(warning Python support won't be built) | 733 | $(warning Python support will not be built) |
711 | endef | 734 | endef |
712 | 735 | ||
713 | override PYTHON := \ | 736 | override PYTHON := \ |
@@ -715,19 +738,10 @@ override PYTHON := \ | |||
715 | 738 | ||
716 | ifndef PYTHON | 739 | ifndef PYTHON |
717 | $(call disable-python,python interpreter) | 740 | $(call disable-python,python interpreter) |
718 | python-clean := | ||
719 | else | 741 | else |
720 | 742 | ||
721 | PYTHON_WORD := $(call shell-wordify,$(PYTHON)) | 743 | PYTHON_WORD := $(call shell-wordify,$(PYTHON)) |
722 | 744 | ||
723 | # python extension build directories | ||
724 | PYTHON_EXTBUILD := $(OUTPUT)python_ext_build/ | ||
725 | PYTHON_EXTBUILD_LIB := $(PYTHON_EXTBUILD)lib/ | ||
726 | PYTHON_EXTBUILD_TMP := $(PYTHON_EXTBUILD)tmp/ | ||
727 | export PYTHON_EXTBUILD_LIB PYTHON_EXTBUILD_TMP | ||
728 | |||
729 | python-clean := rm -rf $(PYTHON_EXTBUILD) $(OUTPUT)python/perf.so | ||
730 | |||
731 | ifdef NO_LIBPYTHON | 745 | ifdef NO_LIBPYTHON |
732 | $(call disable-python) | 746 | $(call disable-python) |
733 | else | 747 | else |
@@ -839,10 +853,24 @@ ifndef NO_BACKTRACE | |||
839 | endif | 853 | endif |
840 | endif | 854 | endif |
841 | 855 | ||
856 | ifndef NO_LIBNUMA | ||
857 | FLAGS_LIBNUMA = $(ALL_CFLAGS) $(ALL_LDFLAGS) -lnuma | ||
858 | ifneq ($(call try-cc,$(SOURCE_LIBNUMA),$(FLAGS_LIBNUMA),libnuma),y) | ||
859 | msg := $(warning No numa.h found, disables 'perf bench numa mem' benchmark, please install numa-libs-devel or libnuma-dev); | ||
860 | else | ||
861 | BASIC_CFLAGS += -DLIBNUMA_SUPPORT | ||
862 | BUILTIN_OBJS += $(OUTPUT)bench/numa.o | ||
863 | EXTLIBS += -lnuma | ||
864 | endif | ||
865 | endif | ||
866 | |||
842 | ifdef ASCIIDOC8 | 867 | ifdef ASCIIDOC8 |
843 | export ASCIIDOC8 | 868 | export ASCIIDOC8 |
844 | endif | 869 | endif |
845 | 870 | ||
871 | endif # MAKECMDGOALS != tags | ||
872 | endif # MAKECMDGOALS != clean | ||
873 | |||
846 | # Shell quote (do not use $(call) to accommodate ancient setups); | 874 | # Shell quote (do not use $(call) to accommodate ancient setups); |
847 | 875 | ||
848 | ETC_PERFCONFIG_SQ = $(subst ','\'',$(ETC_PERFCONFIG)) | 876 | ETC_PERFCONFIG_SQ = $(subst ','\'',$(ETC_PERFCONFIG)) |
@@ -884,7 +912,7 @@ strip: $(PROGRAMS) $(OUTPUT)perf | |||
884 | $(STRIP) $(STRIP_OPTS) $(PROGRAMS) $(OUTPUT)perf | 912 | $(STRIP) $(STRIP_OPTS) $(PROGRAMS) $(OUTPUT)perf |
885 | 913 | ||
886 | $(OUTPUT)perf.o: perf.c $(OUTPUT)common-cmds.h $(OUTPUT)PERF-CFLAGS | 914 | $(OUTPUT)perf.o: perf.c $(OUTPUT)common-cmds.h $(OUTPUT)PERF-CFLAGS |
887 | $(QUIET_CC)$(CC) -DPERF_VERSION='"$(PERF_VERSION)"' \ | 915 | $(QUIET_CC)$(CC) -include $(OUTPUT)PERF-VERSION-FILE \ |
888 | '-DPERF_HTML_PATH="$(htmldir_SQ)"' \ | 916 | '-DPERF_HTML_PATH="$(htmldir_SQ)"' \ |
889 | $(ALL_CFLAGS) -c $(filter %.c,$^) -o $@ | 917 | $(ALL_CFLAGS) -c $(filter %.c,$^) -o $@ |
890 | 918 | ||
@@ -948,7 +976,13 @@ $(OUTPUT)util/exec_cmd.o: util/exec_cmd.c $(OUTPUT)PERF-CFLAGS | |||
948 | 976 | ||
949 | $(OUTPUT)tests/attr.o: tests/attr.c $(OUTPUT)PERF-CFLAGS | 977 | $(OUTPUT)tests/attr.o: tests/attr.c $(OUTPUT)PERF-CFLAGS |
950 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) \ | 978 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) \ |
951 | '-DBINDIR="$(bindir_SQ)"' \ | 979 | '-DBINDIR="$(bindir_SQ)"' -DPYTHON='"$(PYTHON_WORD)"' \ |
980 | $< | ||
981 | |||
982 | $(OUTPUT)tests/python-use.o: tests/python-use.c $(OUTPUT)PERF-CFLAGS | ||
983 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) \ | ||
984 | -DPYTHONPATH='"$(OUTPUT)python"' \ | ||
985 | -DPYTHON='"$(PYTHON_WORD)"' \ | ||
952 | $< | 986 | $< |
953 | 987 | ||
954 | $(OUTPUT)util/config.o: util/config.c $(OUTPUT)PERF-CFLAGS | 988 | $(OUTPUT)util/config.o: util/config.c $(OUTPUT)PERF-CFLAGS |
@@ -1099,7 +1133,7 @@ perfexec_instdir = $(prefix)/$(perfexecdir) | |||
1099 | endif | 1133 | endif |
1100 | perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir)) | 1134 | perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir)) |
1101 | 1135 | ||
1102 | install: all try-install-man | 1136 | install-bin: all |
1103 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)' | 1137 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)' |
1104 | $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)' | 1138 | $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)' |
1105 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/Perf-Trace-Util/lib/Perf/Trace' | 1139 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/Perf-Trace-Util/lib/Perf/Trace' |
@@ -1120,6 +1154,8 @@ install: all try-install-man | |||
1120 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr' | 1154 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr' |
1121 | $(INSTALL) tests/attr/* '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr' | 1155 | $(INSTALL) tests/attr/* '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr' |
1122 | 1156 | ||
1157 | install: install-bin try-install-man | ||
1158 | |||
1123 | install-python_ext: | 1159 | install-python_ext: |
1124 | $(PYTHON_WORD) util/setup.py --quiet install --root='/$(DESTDIR_SQ)' | 1160 | $(PYTHON_WORD) util/setup.py --quiet install --root='/$(DESTDIR_SQ)' |
1125 | 1161 | ||