summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Wiese <chris@opensde.org>2014-04-10 16:03:21 +0200
committerDaniel Borkmann <dborkman@redhat.com>2014-04-10 17:42:34 +0200
commit104af1041599d9dc777f6b4385f520ff188470de (patch)
tree9781b1892ccc0cde3c351303f1ec90c8735d464f
parent049160cce62d02bd3b3f501368fc21eb2ca66dfa (diff)
doc: add documentation of DESTDIR usage in INSTALL and make help
Document the newly introduced DESTDIR option. Signed-off-by: Christian Wiese <chris@opensde.org> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-rw-r--r--INSTALL8
-rw-r--r--Misc1
2 files changed, 9 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 50bfdf5..eefac70 100644
--- a/INSTALL
+++ b/INSTALL
@@ -171,6 +171,14 @@ build and install the toolkit into prefixed path like:
$ make PREFIX=<path-prefix-for-package>
$ make PREFIX=<path-prefix-for-package> install
+Additionally to setting the PREFIX you can set DESTDIR if you want to install
+the toolkit outside of your current root filesystem but into an alternative
+path. This is particularly useful when cross-compiling because most likely
+you want to install into a dedicated sandbox or into a mounted root filesystem
+for the target architecture and not into the build hosts root filesystem.
+
+ $ make PREFIX=<path-prefix-for-package> DESTDIR=<alternative-rootfs> install
+
Thanks for maintaining netsniff-ng in your distribution. Further questions will
be answered on the public mailing list.
diff --git a/Misc b/Misc
index 97fc8d1..c71767d 100644
--- a/Misc
+++ b/Misc
@@ -104,6 +104,7 @@ help:
$(Q)echo " DEBUG=1 / DISTRO=1 - Enable debugging / Build for distros"
$(Q)echo " HARDENING=1 - Enable GCC hardening of executables"
$(Q)echo " PREFIX=/path - Install path prefix"
+ $(Q)echo " DESTDIR=/path - Alternative install destination path"
$(Q)echo " CROSS_COMPILE=/path-prefix - Kernel-like cross-compiling prefix"
$(Q)echo " CROSS_LD_LIBRARY_PATH=/path - Library search path for cross-compiling"
$(Q)echo " CC=cgcc - Use sparse compiler wrapper"