aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Hendrik Tews <hendrik@askra.de>2012-03-05 18:52:34 +0000
committerGravatar Hendrik Tews <hendrik@askra.de>2012-03-05 18:52:34 +0000
commita47bb556f656a43c1d0ca6afb69e838cde8e278c (patch)
treec5b5f6cf779eebdc8a3f4037ddd097fa271131cd /Makefile
parent47bbb5d108309bdde3f8a0398f3869f2f805f87f (diff)
support DESTDIR in make install
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3ff1a200..440c1c2a 100644
--- a/Makefile
+++ b/Makefile
@@ -30,8 +30,10 @@ EMACS=$(shell if [ -z "`which emacs`" ]; then echo "Emacs executable not found";
# individually before the install section.
# NB: DEST_PREFIX is used for final destination prefix, in case we're
# packaging into a build prefix rather than live root (e.g. in rpmbuild).
-PREFIX=/usr
-DEST_PREFIX=/usr
+# NBB: DESTDIR provides for staged installs, for instance when building
+# Debian packages, see http://www.gnu.org/prep/standards/html_node/DESTDIR.html
+PREFIX=$(DESTDIR)/usr
+DEST_PREFIX=$(DESTDIR)/usr
PWD=$(shell pwd)