Skip to content

Commit

Permalink
Adds $arch-$os to libsubdir, datasubdir and docdir by default as sugg…
Browse files Browse the repository at this point in the history
…ested in #1184 (comment)
  • Loading branch information
lukexi committed Feb 21, 2013
1 parent b1c6200 commit fab3dd7
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"
LHC -> "$compiler"
UHC -> "$pkgid"
_other -> "$pkgid" </> "$compiler",
_other -> "$arch-$os" </> "$pkgid" </> "$compiler",
dynlibdir = "$libdir",
libexecdir = case buildOS of
Windows -> "$prefix" </> "$pkgid"
Expand All @@ -246,8 +246,8 @@ defaultInstallDirs comp userInstall _hasLibs = do
datadir = case buildOS of
Windows -> "$prefix"
_other -> "$prefix" </> "share",
datasubdir = "$pkgid",
docdir = "$datadir" </> "doc" </> "$pkgid",
datasubdir = "$arch-$os" </> "$pkgid",
docdir = "$datadir" </> "doc" </> "$arch-$os" </> "$pkgid",
mandir = "$datadir" </> "man",
htmldir = "$docdir" </> "html",
haddockdir = "$htmldir"
Expand Down

0 comments on commit fab3dd7

Please sign in to comment.