From a47bb556f656a43c1d0ca6afb69e838cde8e278c Mon Sep 17 00:00:00 2001 From: Hendrik Tews Date: Mon, 5 Mar 2012 18:52:34 +0000 Subject: support DESTDIR in make install --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3