Commit a48167ea authored by Austin Seipp's avatar Austin Seipp

build: Clean testsuite before sdist

When making the `sdist` tarball, we don't really need anything inside
$(TOP)/testsuite in order to do our thing. So make sure we clean it
first to avoid situations like #10406.

With D917 landed, this can actually avoided entirely by fixing the
official release process to instead build an `sdist` //first// from the
clean git repository and then build that (to fixpoint) and test it. Then
the originall clean tarball can be shipped.

But it's nice to be safe in the general case where someone might want to
(in the future) `sdist` out of their build tree.
Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>

Reviewed By: thomie

Differential Revision: https://phabricator.haskell.org/D956

GHC Trac Issues: #10406
parent 058af6c9
...@@ -1175,6 +1175,7 @@ sdist-testsuite-prep : ...@@ -1175,6 +1175,7 @@ sdist-testsuite-prep :
mkdir -p $(SRC_DIST_TESTSUITE_DIR) mkdir -p $(SRC_DIST_TESTSUITE_DIR)
mkdir -p $(SRC_DIST_TESTSUITE_DIR)/testsuite mkdir -p $(SRC_DIST_TESTSUITE_DIR)/testsuite
cd $(SRC_DIST_TESTSUITE_DIR)/testsuite && lndir $(TOP)/testsuite cd $(SRC_DIST_TESTSUITE_DIR)/testsuite && lndir $(TOP)/testsuite
cd $(SRC_DIST_TESTSUITE_DIR) && $(MAKE) distclean
.PHONY: sdist-ghc .PHONY: sdist-ghc
sdist-ghc: sdist-ghc-prep sdist-ghc: sdist-ghc-prep
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment