summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghc/mk/boilerplate.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/ghc/mk/boilerplate.mk b/ghc/mk/boilerplate.mk
index cd11165b26..b8cc529672 100644
--- a/ghc/mk/boilerplate.mk
+++ b/ghc/mk/boilerplate.mk
@@ -31,3 +31,9 @@ TOP:=$(GHC_TOP)
-include $(TOP)/mk/version.mk
include $(TOP)/mk/suffix.mk
+# -----------------------------------------------------------------
+# Override $(libdir) and $(datadir), so GHC stuff gets installed
+# into a suitable subdirectory of $(libdir).
+
+libdir := $(libdir)/$(ProjectNameShort)-$(ProjectVersion)
+datadir := $(datadir)/$(ProjectNameShort)-$(ProjectVersion)