aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
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)