We need to set datadir = $(libdir) in bindists
authorIan Lynagh <igloo@earth.li>
Sun, 5 Oct 2008 14:33:07 +0000 (14:33 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 5 Oct 2008 14:33:07 +0000 (14:33 +0000)
We already do in the normal Makefiles.

This is because GHC needs package.conf and unlit to be in the same place
(and things like ghc-pkg need to agree on where package.conf is, so we
just set it globally).

distrib/Makefile-bin-vars.in

index 18a73e7..cb69ac6 100644 (file)
@@ -12,7 +12,10 @@ bindir      = @bindir@
 libdir      = @libdir@/$(package)-$(version)
 libexecdir  = $(libdir)
 datarootdir = @datarootdir@
-datadir     = @datadir@/$(package)-$(version)
+# datadir is set to libdir here as GHC needs package.conf and unlit
+# to be in the same place (and things like ghc-pkg need to agree on
+# where package.conf is, so we just set it globally).
+datadir     = $(libdir)
 
 platform    = @TargetPlatform@
 prefix      = @prefix@