summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-01 16:02:54 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-03 12:17:32 -0400
commit259f4dffaf6698ab6923487e6aa0394d387ae8c6 (patch)
tree782fc106b8f0cd3846e8dc32f6a0bc800bf6294e /ghc.mk
parentcb364bc25592260a157c9d977619c42f3b2772a4 (diff)
downloadhaskell-259f4dffaf6698ab6923487e6aa0394d387ae8c6.tar.gz
Exclude rts.cabal from source distributions
This modifies both the Hadrian and make build systems to avoid included the rts.cabal generated by autoconf in the source distribution. Fixes #17265.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index 84687fd08f..677508de8e 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1204,6 +1204,7 @@ sdist-ghc-prep-tree :
$(call removeTrees,$(SRC_DIST_GHC_DIR)/libraries/stamp/)
$(call removeTrees,$(SRC_DIST_GHC_DIR)/compiler/stage[123])
$(call removeFiles,$(SRC_DIST_GHC_DIR)/mk/build.mk)
+ $(call removeFiles,$(SRC_DIST_GHC_DIR)/rts/rts.cabal)
cd $(SRC_DIST_GHC_DIR) && "$(FIND)" $(SRC_DIST_GHC_DIRS) \( -name .git -o -name "autom4te*" -o -name "*~" -o -name "\#*" -o -name ".\#*" -o -name "log" -o -name "*-SAVE" -o -name "*.orig" -o -name "*.rej" \) -print | "$(XARGS)" $(XARGS_OPTS) "$(RM)" $(RM_OPTS_REC)
# Add files generated by alex and happy.