From: Bruce Richardson <bruce.richardson@intel.com>
To: mario.alfredo.c.arevalo@intel.com, dev@dpdk.org
Subject: [dpdk-dev] [RFC-PATCH 1/2] gen-build-mk: add "make install" option to build dir
Date: Tue, 27 Oct 2015 14:25:05 +0000 [thread overview]
Message-ID: <1445955906-8505-2-git-send-email-bruce.richardson@intel.com> (raw)
In-Reply-To: <1445955906-8505-1-git-send-email-bruce.richardson@intel.com>
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 <bruce.richardson@intel.com>
---
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
next prev parent reply other threads:[~2015-10-27 14:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6594B51DBE477C48AAE23675314E6C460F1B724F@fmsmsx107.amr.corp.intel.com>
2015-10-20 9:17 ` [dpdk-dev] dpdk proposal installation process Bruce Richardson
2015-10-21 19:15 ` Olivier MATZ
2015-10-22 5:55 ` Panu Matilainen
2015-10-22 14:57 ` Bruce Richardson
2015-10-26 16:18 ` Arevalo, Mario Alfredo C
2015-10-27 14:25 ` [dpdk-dev] compile and install using configure-make-make_install Bruce Richardson
2015-10-27 14:25 ` Bruce Richardson [this message]
2015-10-27 14:25 ` [dpdk-dev] [RFC-PATCH 2/2] add example configure script Bruce Richardson
2015-11-03 7:35 ` [dpdk-dev] compile and install using configure-make-make_install Panu Matilainen
2015-11-03 10:16 ` Bruce Richardson
2015-11-27 11:50 ` [dpdk-dev] dpdk proposal installation process Thomas Monjalon
2015-11-27 13:16 ` Marc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1445955906-8505-2-git-send-email-bruce.richardson@intel.com \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=mario.alfredo.c.arevalo@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).