From patchwork Thu May 23 15:18:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yordan Karadzhov X-Patchwork-Id: 10958031 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 D1CBB1708 for ; Thu, 23 May 2019 15:18:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA6582867C for ; Thu, 23 May 2019 15:18:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF2892864A; Thu, 23 May 2019 15:18:51 +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 5179D28676 for ; Thu, 23 May 2019 15:18:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730904AbfEWPSu (ORCPT ); Thu, 23 May 2019 11:18:50 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37575 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731173AbfEWPSs (ORCPT ); Thu, 23 May 2019 11:18:48 -0400 Received: by mail-wr1-f66.google.com with SMTP id e15so6743904wrs.4 for ; Thu, 23 May 2019 08:18:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RlPSX2f46myCSZN6xZyY1xUFxQFevAdG7+SpzfBhUK0=; b=Tf1OsfwUllZLaZuSmMXUm3BGg4hw+n0rW89pzFmxTwF4cO4SIRmdhT9bNZR1DYvMJ4 7jageiFFRepxxTfghsbX64ZCYXdxRqj2bU7o+wmtoLn04V0/k26VGykkT+XyGujNR4if l8X/0sbL6vnAiX/ye8GKFp69fG+wiLGZWRwRt7uOx7XIhuiEJGbDEDHyuXONBwZh9rt7 tMncHcThlSRWTm/GU6GTXBGeF1A6aKcyyKpIxpVzRWdcUTjqn42RbyYo+4UglrIj3hpa JP6rkHMGsbjNwp7/rnMVNFUv4kPGgULC1HBdolJWxRnyoDAMZ2UGAfc/YvhBSpRB3FuK ORlg== X-Gm-Message-State: APjAAAVyzYKk49ib3tSDOfbmVRwGXh1PsSmvPXCqNviR38CbPimdDOZS +3Rd4eYZSH+L1GCv6VbnnW0= X-Google-Smtp-Source: APXvYqx0nkJR+2h6iZQXInL3oldBxnvpuKll0l99jcIygyAc4fLKy/WkKGqXssC0kncijqDeanZadw== X-Received: by 2002:adf:f488:: with SMTP id l8mr23748287wro.287.1558624726740; Thu, 23 May 2019 08:18:46 -0700 (PDT) Received: from mamba.eng.vmware.com ([146.247.46.5]) by smtp.gmail.com with ESMTPSA id x9sm12687071wmf.27.2019.05.23.08.18.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 08:18:46 -0700 (PDT) From: Yordan Karadzhov To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org, y.karadz@gmail.com, Yordan Karadzhov Subject: [PATCH 4/5] trace-cmd: Install public interface headers Date: Thu, 23 May 2019 18:18:11 +0300 Message-Id: <20190523151812.31391-5-ykaradzhov@vmware.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190523151812.31391-1-ykaradzhov@vmware.com> References: <20190523151812.31391-1-ykaradzhov@vmware.com> 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 Installing the header files included in the public interfaces of the trace-cmd libraries will make possible the libraries to be used for development. Signed-off-by: Yordan Karadzhov --- Makefile | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index cde45f8..ac514b1 100644 --- a/Makefile +++ b/Makefile @@ -49,10 +49,18 @@ html_install = $(prefix)/share/kernelshark/html html_install_SQ = '$(subst ','\'',$(html_install))' img_install = $(prefix)/share/kernelshark/html/images img_install_SQ = '$(subst ','\'',$(img_install))' -libdir ?= $(prefix)/lib -libdir_SQ = '$(subst ','\'',$(libdir))' -includedir = $(prefix)/include/trace-cmd -includedir_SQ = '$(subst ','\'',$(includedir))' + +tcmd_libdir ?= $(prefix)/lib/trace-cmd +tcmd_libdir_SQ = '$(subst ','\'',$(tcmd_libdir))' + +tevt_libdir ?= $(prefix)/lib/traceevent +tevt_libdir_SQ = '$(subst ','\'',$(tevt_libdir))' + +tcmd_includedir = $(prefix)/include/trace-cmd +tcmd_includedir_SQ = '$(subst ','\'',$(tcmd_includedir))' + +tevt_includedir = $(prefix)/include/traceevent +tevt_includedir_SQ = '$(subst ','\'',$(tevt_includedir))' export man_dir man_dir_SQ html_install html_install_SQ INSTALL export img_install img_install_SQ @@ -335,10 +343,12 @@ install_gui: install_cmd gui $(Q)$(MAKE) $(S) -C $(kshark-dir)/build install install_libs: libs - $(Q)$(call do_install,$(LIBTRACECMD_SHARED),$(libdir_SQ)) - $(Q)$(call do_install,$(LIBTRACEEVENT_SHARED),$(libdir_SQ)) - $(Q)$(call do_install,$(src)/include/traceevent/event-parse.h,$(includedir_SQ)) - $(Q)$(call do_install,$(src)/include/trace-cmd/trace-cmd.h,$(includedir_SQ)) + $(Q)$(call do_install,$(LIBTRACECMD_SHARED),$(tcmd_libdir_SQ)) + $(Q)$(call do_install,$(LIBTRACEEVENT_SHARED),$(tevt_libdir_SQ)) + $(Q)$(call do_install,$(src)/include/traceevent/event-parse.h,$(tevt_includedir_SQ)) + $(Q)$(call do_install,$(src)/include/traceevent/trace-seq.h,$(tevt_includedir_SQ)) + $(Q)$(call do_install,$(src)/include/trace-cmd/trace-cmd.h,$(tcmd_includedir_SQ)) + $(Q)$(call do_install,$(src)/include/trace-cmd/trace-filter-hash.h,$(tcmd_includedir_SQ)) doc: $(MAKE) -C $(src)/Documentation all