X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=distrib%2FMakefile-bin-vars.in;h=cb69ac675eac115158c576a10f5c1642475d3471;hp=511f237b24cbc1cbba8f26f5f31d46f7ff40065d;hb=34cc75e1a62638f2833815746ebce0a9114dc26b;hpb=70f9a988c8f8105f7e412c270d018a028d464432 diff --git a/distrib/Makefile-bin-vars.in b/distrib/Makefile-bin-vars.in index 511f237..cb69ac6 100644 --- a/distrib/Makefile-bin-vars.in +++ b/distrib/Makefile-bin-vars.in @@ -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@ @@ -37,6 +40,13 @@ CP = cp LN_S = @LN_S@ CHMOD = chmod INSTALL = @INSTALL@ +# +# Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback +# install-sh script (if chosen). This not terribly useful to us, so we convert +# it into an abs. path. +# +INSTALL := $(subst ./install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL)) + exeext = @exeext@ SED = @SedCmd@ DEFAULT_TMPDIR = /tmp