summaryrefslogtreecommitdiff
path: root/ghc/mk
diff options
context:
space:
mode:
authorsewardj <unknown>2001-04-06 16:15:39 +0000
committersewardj <unknown>2001-04-06 16:15:39 +0000
commit77cdc77c6e522d550e60a2240eb698335d79d988 (patch)
tree1725c91040e830c96bef4f445e75b6c9e11a8de0 /ghc/mk
parent6a48b75eecde6e6a266e3cccfc4c29072a2e87ca (diff)
downloadhaskell-77cdc77c6e522d550e60a2240eb698335d79d988.tar.gz
[project @ 2001-04-06 16:15:39 by sewardj]
Commit the following change: > > Why the default libdir is /usr/local/lib > > and not /usr/local/lib/ghc-<version>? > > Great question. I end up running config with the likes of > `--libdir=/usr/local/lib/ghc-5.0' every time, which gets to > be annoying ;-) I've been meaning to fix this for a while, but couldn't see a good way to do it. I found a (mildly-hacky) way to do it today: in fptools/ghc, we override $(libdir) to be $(libdir)/$(ProjectNameShort)-$(ProjectVersion), so everything inside fptools/ghc will be installed in the subdirectory. fptools/hslibs is a bit more of a hack.
Diffstat (limited to 'ghc/mk')
-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)