From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6ADC52C72 for ; Fri, 18 Sep 2015 22:32:59 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 18 Sep 2015 13:32:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,554,1437462000"; d="scan'208";a="772118400" Received: from mcarril6-mobl.zpn.intel.com ([10.219.16.35]) by orsmga001.jf.intel.com with ESMTP; 18 Sep 2015 13:32:58 -0700 From: Mario Carrillo To: dev@dpdk.org Date: Fri, 18 Sep 2015 15:33:07 -0500 Message-Id: <1442608390-12537-5-git-send-email-mario.alfredo.c.arevalo@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1442608390-12537-1-git-send-email-mario.alfredo.c.arevalo@intel.com> References: <1442608390-12537-1-git-send-email-mario.alfredo.c.arevalo@intel.com> Subject: [dpdk-dev] [PATCH 4/7] mk: Add hierarchy-file support (app) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2015 20:32:59 -0000 Add hierarchy-file support to the DPDK app files, when invoking "make install H=1" (hierarchy-file) This hierarchy is based on: http://www.freedesktop.org/software/systemd/man/file-hierarchy.html app files will be installed in: $(DESTDIR)/usr/bin Signed-off-by: Mario Carrillo --- mk/rte.app.mk | 8 ++++++++ mk/rte.sdkinstall.mk | 2 ++ 2 files changed, 10 insertions(+) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 9e1909e..ae3328c 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -155,6 +155,14 @@ LDLIBS += $(_LDLIBS-y) $(CPU_LDLIBS) $(EXTRA_LDLIBS) .PHONY: all all: install +# +# if H (hierarchy-file) varible is equal "1" +# install app in /usr/bin/ too. +# +ifeq ($(H),1) + @[ -d $(BIN_DIR) ] || mkdir -p $(BIN_DIR) + $(Q)cp -f $(RTE_OUTPUT)/app/$(APP) $(BIN_DIR) +endif .PHONY: install install: build _postinstall diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index 41b8485..723fd97 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -58,8 +58,10 @@ T := $(RTE_ARCH)-$(RTE_MACHINE)-$(RTE_EXEC_ENV)-$(RTE_TOOLCHAIN) DATA_DIR := $(DESTDIR)/usr/share INCLUDE_DIR := $(DESTDIR)/usr/include SBIN_DIR := $(DESTDIR)/usr/sbin +BIN_DIR := $(DESTDIR)/usr/bin export INCLUDE_DIR export SBIN_DIR +export BIN_DIR endif # -- 2.1.0