Skip to content

Commit

Permalink
doc: add documentation of DESTDIR usage in INSTALL and make help
Browse files Browse the repository at this point in the history
Document the newly introduced DESTDIR option.

Signed-off-by: Christian Wiese <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
  • Loading branch information
morfoh authored and borkmann committed Apr 10, 2014
1 parent 049160c commit 104af10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 1 addition & 0 deletions Misc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 104af10

Please sign in to comment.