From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: [RFC-PATCH 1/2] gen-build-mk: add "make install" option to build dir Date: Tue, 27 Oct 2015 14:25:05 +0000 Message-ID: <1445955906-8505-2-git-send-email-bruce.richardson@intel.com> References: <6594B51DBE477C48AAE23675314E6C460F1B8B6E@fmsmsx107.amr.corp.intel.com> <1445955906-8505-1-git-send-email-bruce.richardson@intel.com> To: mario.alfredo.c.arevalo@intel.com, dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 438FC567C for ; Tue, 27 Oct 2015 15:25:11 +0100 (CET) In-Reply-To: <1445955906-8505-1-git-send-email-bruce.richardson@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add in a "make install" command to the makefile for a DPDK build directory. Once inside the directory, make and make install will behave as normal for opensource packages, compiling and installing in the filesystem the DPDK code. Signed-off-by: Bruce Richardson --- scripts/gen-build-mk.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/gen-build-mk.sh b/scripts/gen-build-mk.sh index 5c12813..2387cf6 100755 --- a/scripts/gen-build-mk.sh +++ b/scripts/gen-build-mk.sh @@ -36,6 +36,9 @@ # $1: path of project src root # $2: path of build dir (can be relative to $1) +if [ -z "$RTE_PREFIX" ] ; then + RTE_PREFIX=/usr/local +fi echo "# Automatically generated by gen-build-mk.sh" echo echo "ifdef O" @@ -46,8 +49,18 @@ echo "endif" echo echo "MAKEFLAGS += --no-print-directory" echo +echo "INSTALL = install -v" +echo echo "all:" echo " @\$(MAKE) -C $1 O=$2" echo +echo "install:" +echo " @\$(INSTALL) -d $RTE_PREFIX/lib/dpdk $RTE_PREFIX/include/dpdk" +echo " @\$(INSTALL) -d $RTE_PREFIX/include/dpdk/exec-env $RTE_PREFIX/include/dpdk/generic" +echo " @\$(INSTALL) lib/* $RTE_PREFIX/lib/dpdk" +echo " @\$(INSTALL) include/*.h $RTE_PREFIX/include/dpdk" +echo " @\$(INSTALL) include/exec-env/*.h $RTE_PREFIX/include/dpdk/exec-env" +echo " @\$(INSTALL) include/generic/*.h $RTE_PREFIX/include/dpdk/generic" +echo echo "%::" echo " @\$(MAKE) -C $1 O=$2 \$@" -- 2.4.3