diff options
author | Hendrik Tews <hendrik@askra.de> | 2012-03-05 18:52:34 +0000 |
---|---|---|
committer | Hendrik Tews <hendrik@askra.de> | 2012-03-05 18:52:34 +0000 |
commit | a47bb556f656a43c1d0ca6afb69e838cde8e278c (patch) | |
tree | c5b5f6cf779eebdc8a3f4037ddd097fa271131cd /Makefile | |
parent | 47bbb5d108309bdde3f8a0398f3869f2f805f87f (diff) |
support DESTDIR in make install
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |