From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 27 Oct 2015 07:25:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,205,1444719600"; d="scan'208";a="820534291" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 27 Oct 2015 07:25:08 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t9REP8hE032736; Tue, 27 Oct 2015 14:25:08 GMT Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id t9REP7Bt008546; Tue, 27 Oct 2015 14:25:07 GMT Received: (from bricha3@localhost) by sivswdev01.ir.intel.com with id t9REP7am008542; Tue, 27 Oct 2015 14:25:07 GMT From: Bruce Richardson To: mario.alfredo.c.arevalo@intel.com, dev@dpdk.org Date: Tue, 27 Oct 2015 14:25:05 +0000 Message-Id: <1445955906-8505-2-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1445955906-8505-1-git-send-email-bruce.richardson@intel.com> References: <6594B51DBE477C48AAE23675314E6C460F1B8B6E@fmsmsx107.amr.corp.intel.com> <1445955906-8505-1-git-send-email-bruce.richardson@intel.com> Subject: [dpdk-dev] [RFC-PATCH 1/2] gen-build-mk: add "make install" option to build dir 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: Tue, 27 Oct 2015 14:25:11 -0000 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