Skip to content

Commit

Permalink
Adds $arch-$os-$compiler to libsubdir, datasubdir and docdir by defau…
Browse files Browse the repository at this point in the history
…lt as suggested in #1214
  • Loading branch information
lukexi committed Mar 1, 2013
1 parent 7a0941c commit fa44826
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cabal/Distribution/Simple/InstallDirs.hs
Expand Up @@ -236,7 +236,7 @@ defaultInstallDirs comp userInstall _hasLibs = do
JHC -> "$compiler" JHC -> "$compiler"
LHC -> "$compiler" LHC -> "$compiler"
UHC -> "$pkgid" UHC -> "$pkgid"
_other -> "$pkgid" </> "$compiler", _other -> "$arch-$os-$compiler" </> "$pkgid",
dynlibdir = "$libdir", dynlibdir = "$libdir",
libexecdir = case buildOS of libexecdir = case buildOS of
Windows -> "$prefix" </> "$pkgid" Windows -> "$prefix" </> "$pkgid"
Expand All @@ -246,8 +246,8 @@ defaultInstallDirs comp userInstall _hasLibs = do
datadir = case buildOS of datadir = case buildOS of
Windows -> "$prefix" Windows -> "$prefix"
_other -> "$prefix" </> "share", _other -> "$prefix" </> "share",
datasubdir = "$pkgid", datasubdir = "$arch-$os-$compiler" </> "$pkgid",
docdir = "$datadir" </> "doc" </> "$pkgid", docdir = "$datadir" </> "doc" </> "$arch-$os-$compiler" </> "$pkgid",
mandir = "$datadir" </> "man", mandir = "$datadir" </> "man",
htmldir = "$docdir" </> "html", htmldir = "$docdir" </> "html",
haddockdir = "$htmldir" haddockdir = "$htmldir"
Expand Down

0 comments on commit fa44826

Please sign in to comment.