From patchwork Sat Jul 20 03:03:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick McLean X-Patchwork-Id: 11050753 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AE0C31510 for ; Sat, 20 Jul 2019 03:03:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AC02289C5 for ; Sat, 20 Jul 2019 03:03:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EFDD289B4; Sat, 20 Jul 2019 03:03:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25786289B4 for ; Sat, 20 Jul 2019 03:03:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390433AbfGTDD4 (ORCPT ); Fri, 19 Jul 2019 23:03:56 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:39660 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390400AbfGTDD4 (ORCPT ); Fri, 19 Jul 2019 23:03:56 -0400 Received: from chiana.gaikai.org (unknown [100.42.98.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: chutzpah) by smtp.gentoo.org (Postfix) with ESMTPSA id 2D0B8348128 for ; Sat, 20 Jul 2019 03:03:56 +0000 (UTC) From: Patrick McLean To: linux-trace-devel@vger.kernel.org Subject: [PATCH 1/4] trace-cmd: Allow overriding of python installation directory Date: Fri, 19 Jul 2019 20:03:41 -0700 Message-Id: <20190720030344.1991393-2-chutzpah@gentoo.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190720030344.1991393-1-chutzpah@gentoo.org> References: <20190720030344.1991393-1-chutzpah@gentoo.org> MIME-Version: 1.0 Sender: linux-trace-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Patrick McLean The current Makefile hardcodes the python module install directory, so packages can't put them in their distro's perferred location. This allows the directory to be overriden on the command line. Signed-off-by: Patrick McLean --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ad74a96..3579f27 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ python_dir = $(HOME)/.trace-cmd/python var_dir = $(HOME)/.trace-cmd/ else plugin_dir = $(libdir)/trace-cmd/plugins -python_dir = $(libdir)/trace-cmd/python +python_dir ?= $(libdir)/trace-cmd/python PLUGIN_DIR = -DPLUGIN_DIR="$(plugin_dir)" PYTHON_DIR = -DPYTHON_DIR="$(python_dir)" PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))'