From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751842AbbE0QqD (ORCPT ); Wed, 27 May 2015 12:46:03 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38841 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751609AbbE0QqA (ORCPT ); Wed, 27 May 2015 12:46:00 -0400 Date: Wed, 27 May 2015 09:45:33 -0700 From: "tip-bot for Nam T. Nguyen" Message-ID: Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, acme@redhat.com, mingo@kernel.org, jolsa@kernel.org, a.p.zijlstra@chello.nl, tglx@linutronix.de, paulus@samba.org, sque@chromium.org, namnguyen@chromium.org Reply-To: hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, acme@redhat.com, jolsa@kernel.org, a.p.zijlstra@chello.nl, tglx@linutronix.de, namnguyen@chromium.org, sque@chromium.org, paulus@samba.org In-Reply-To: <1431974247-22275-1-git-send-email-namnguyen@chromium.org> References: <1431974247-22275-1-git-send-email-namnguyen@chromium.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Separate the tests and tools in installation Git-Commit-ID: 128c32ed1866e6cf3d3944e7dcdcea06bc060b0d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 128c32ed1866e6cf3d3944e7dcdcea06bc060b0d Gitweb: http://git.kernel.org/tip/128c32ed1866e6cf3d3944e7dcdcea06bc060b0d Author: Nam T. Nguyen AuthorDate: Mon, 18 May 2015 11:37:27 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 27 May 2015 12:21:43 -0300 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 Acked-by: Jiri Olsa Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Simon Que Link: http://lkml.kernel.org/r/1431974247-22275-1-git-send-email-namnguyen@chromium.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.perf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 03409cc..5816a3b 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -464,7 +464,7 @@ check: $(OUTPUT)common-cmds.h install-gtk: -install-bin: all install-gtk +install-tools: all install-gtk $(call QUIET_INSTALL, binaries) \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'; \ $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)'; \ @@ -502,12 +502,16 @@ endif $(call QUIET_INSTALL, perf_completion-script) \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d'; \ $(INSTALL) perf-completion.sh '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d/perf' + +install-tests: all install-gtk $(call QUIET_INSTALL, tests) \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \ $(INSTALL) tests/attr.py '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr'; \ $(INSTALL) tests/attr/* '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr' +install-bin: install-tools install-tests + install: install-bin try-install-man install-traceevent-plugins install-python_ext: