diff options
author | Nam T. Nguyen <namnguyen@chromium.org> | 2015-05-18 14:37:27 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-05-27 11:21:43 -0400 |
commit | 128c32ed1866e6cf3d3944e7dcdcea06bc060b0d (patch) | |
tree | dfb463cf7b28a1bcecb5fae16e5fd3daef7eca2c /tools/perf | |
parent | a82d24edfeaf1ed244cf8b969916840c6feb5165 (diff) |
perf tools: Separate the tests and tools in installation
This refactors out install-bin to install-tests and install-tools so
that downstream could opt to only install the tools, and not the tests.
Signed-off-by: Nam T. Nguyen <namnguyen@chromium.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Simon Que <sque@chromium.org>
Link: http://lkml.kernel.org/r/1431974247-22275-1-git-send-email-namnguyen@chromium.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/Makefile.perf | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 03409cc02117..5816a3bb7e9f 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf | |||
@@ -464,7 +464,7 @@ check: $(OUTPUT)common-cmds.h | |||
464 | 464 | ||
465 | install-gtk: | 465 | install-gtk: |
466 | 466 | ||
467 | install-bin: all install-gtk | 467 | install-tools: all install-gtk |
468 | $(call QUIET_INSTALL, binaries) \ | 468 | $(call QUIET_INSTALL, binaries) \ |
469 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'; \ | 469 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'; \ |
470 | $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)'; \ | 470 | $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)'; \ |
@@ -502,12 +502,16 @@ endif | |||
502 | $(call QUIET_INSTALL, perf_completion-script) \ | 502 | $(call QUIET_INSTALL, perf_completion-script) \ |
503 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d'; \ | 503 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d'; \ |
504 | $(INSTALL) perf-completion.sh '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d/perf' | 504 | $(INSTALL) perf-completion.sh '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d/perf' |
505 | |||
506 | install-tests: all install-gtk | ||
505 | $(call QUIET_INSTALL, tests) \ | 507 | $(call QUIET_INSTALL, tests) \ |
506 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \ | 508 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \ |
507 | $(INSTALL) tests/attr.py '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \ | 509 | $(INSTALL) tests/attr.py '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \ |
508 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr'; \ | 510 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr'; \ |
509 | $(INSTALL) tests/attr/* '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr' | 511 | $(INSTALL) tests/attr/* '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr' |
510 | 512 | ||
513 | install-bin: install-tools install-tests | ||
514 | |||
511 | install: install-bin try-install-man install-traceevent-plugins | 515 | install: install-bin try-install-man install-traceevent-plugins |
512 | 516 | ||
513 | install-python_ext: | 517 | install-python_ext: |