9.4.1: hadrian: also include boot-generated files only needed for make
For some libraries the boot
script generates a ghc.mk
and
GNUmakefile
which is required for the make build system. We also
should include these files in the source-dist to save make users from
having to run the ./boot.source
script in the tarball (which
confusingly has a different name to previous GHC releases, thanks to
hadrian).
With this change, the source-dist should be on parity with GHC 9.2.2 and earlier releases again after the regression in GHC 9.2.3.
Closes #21626.
This only targets ghc-9.4
, since the change is no longer relevant for GHC >= 9.5 where make has been dropped.
I tested this change by generating a tarball using ./hadrian/build source-dist
and then building GHC from that tarball without running boot.source
which worked fine.
cc @mpickering