(svn r1980) Check $DESTDIR if $DEST_DIR was not set.
authorpasky
Wed, 09 Mar 2005 23:59:18 +0000
changeset 1476 abbcea18a01c
parent 1475 b5cf1fc28304
child 1477 2174a73b11c9
(svn r1980) Check $DESTDIR if $DEST_DIR was not set.
Makefile
--- a/Makefile	Wed Mar 09 21:54:52 2005 +0000
+++ b/Makefile	Wed Mar 09 23:59:18 2005 +0000
@@ -98,6 +98,7 @@
 # 		ordinary users, currently it is only used for the debian
 # 		packaging. This value should only be set when calling `make
 # 		install' and is not saved in Makefile.config
+#               (Note that DESTDIR is checked if DEST_DIR is not set.)
 #
 # STATIC: link statically
 # CYGWIN: build in Cygwin environment
@@ -514,6 +515,10 @@
 TTDLDFLAGS += -Wl,--subsystem,windows
 endif
 
+ifndef DEST_DIR
+DEST_DIR = $(DESTDIR)
+endif
+
 # sets up the paths for use for make install
 ifdef INSTALL
 # We use _PREFIXED vars here, so the paths are recalculated every time, and