Make DESTDIR an absolute path when installing; fixes #4883
authorIan Lynagh <igloo@earth.li>
Sat, 8 Jan 2011 17:16:35 +0000 (17:16 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 8 Jan 2011 17:16:35 +0000 (17:16 +0000)
mk/install.mk.in

index 3d74158..b63ffe3 100644 (file)
@@ -179,3 +179,7 @@ endif
 # NB. we use negative tests here because for binary-distributions we cannot
 # test build-time variables at install-time, so they must default to on.
 
+ifneq "$(DESTDIR)" ""
+override DESTDIR := $(abspath $(DESTDIR))
+endif
+