build: add DESTDIR support
commit70959ae3467fdf39fb4303adfebafcbd00e4f637
authorChristian Wiese <chris@opensde.org>
Thu, 10 Apr 2014 10:29:11 +0000 (10 12:29 +0200)
committerDaniel Borkmann <dborkman@redhat.com>
Thu, 10 Apr 2014 11:20:52 +0000 (10 13:20 +0200)
tree8a678844cd2a9bbe19d24bc3f6e4a41954db3a8c
parentca59ce0c7f93f561f137949711221df4f30deba6
build: add DESTDIR support

This change implements support for specifying an alternative
installation destination directory by setting DESTDIR when
calling 'make install'.

Example: make DESTDIR=/alternative-rootfs install

It is particularly useful when cross-compiling and installing
in a dedicated directory where for example the rootfs or a
build sandbox for the target architecture is mounted.

By using DESTDIR you can avoid to mess with PREFIX to include
the alternative installation directory!

Signed-off-by: Christian Wiese <chris@opensde.org>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Makefile
Template
trafgen/Makefile