Make DESTDIR an absolute path when installing; fixes #4883
[ghc-hetmet.git] / 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
+