(svn r1980) Check $DESTDIR if $DEST_DIR was not set.
authorpasky
Wed, 09 Mar 2005 23:59:18 +0000
changeset 1476 c1e4ba7193db
parent 1475 c21a6481b735
child 1477 9389baf2bf3c
(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