summaryrefslogtreecommitdiff
path: root/hadrian/src/Rules/SourceDist.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/src/Rules/SourceDist.hs')
-rw-r--r--hadrian/src/Rules/SourceDist.hs40
1 files changed, 40 insertions, 0 deletions
diff --git a/hadrian/src/Rules/SourceDist.hs b/hadrian/src/Rules/SourceDist.hs
index b218f66c63..7d5fca6ccc 100644
--- a/hadrian/src/Rules/SourceDist.hs
+++ b/hadrian/src/Rules/SourceDist.hs
@@ -157,6 +157,46 @@ prepareTree dest = do
, "configure"
, "aclocal.m4"
, "mk" -/- "config.h.in" ]
+ -- also include files generated by boot that are only used by the make build system
+ ++ concatMap libBootFilesForMake
+ [ base
+ , ghcBootTh
+ , ghcCompact
+ , ghcHeap
+ , ghcPrim
+ , ghci
+ , integerGmp
+ , libiserv
+ , templateHaskell
+ , ghcBignum
+ , cabal
+ , cabalSyntax
+ , win32
+ , array
+ , binary
+ , bytestring
+ , containers
+ , deepseq
+ , directory
+ , exceptions
+ , filepath
+ , haskeline
+ , hpc
+ , mtl
+ , parsec
+ , pretty
+ , process
+ , stm
+ , terminfo
+ , text
+ , time
+ , transformers
+ , unix
+ , xhtml ]
+
+ libBootFilesForMake pkg =
+ [ pkgPath pkg -/- "ghc.mk"
+ , pkgPath pkg -/- "GNUmakefile" ]
copyAlexHappyFiles =
forM_ alexHappyFiles $ \(stg, pkg, inp, out) -> do