# HG changeset patch # User pasky # Date 1110412758 0 # Node ID abbcea18a01c308b33baea3eb5c06d67290c4045 # Parent b5cf1fc28304192c0bc87e467e41ae64066340f8 (svn r1980) Check $DESTDIR if $DEST_DIR was not set. diff -r b5cf1fc28304 -r abbcea18a01c 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