summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2014-01-31 23:31:30 +0000
committerJoachim Breitner <mail@joachim-breitner.de>2014-01-31 23:31:30 +0000
commit50e4d40f88c3eee41384efacfd83f73305e2210d (patch)
tree50d3b1c6720edeebf5c4eb28ccb0a74e472edbb1 /ghc.mk
parent71a412c2aaf798dad769d7d39f3914c15b34950a (diff)
downloadhaskell-50e4d40f88c3eee41384efacfd83f73305e2210d.tar.gz
Individual sdist-foo targets
so that one can build a source distribution without downloading the windows tarballs.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/ghc.mk b/ghc.mk
index 0d3055469d..6628878870 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1154,12 +1154,22 @@ sdist-testsuite-prep :
mkdir $(SRC_DIST_TESTSUITE_DIR)/testsuite
cd $(SRC_DIST_TESTSUITE_DIR)/testsuite && lndir $(TOP)/testsuite
-.PHONY: sdist
-sdist : sdist-ghc-prep sdist-windows-tarballs-prep sdist-testsuite-prep
+.PHONY: sdist-ghc
+sdist-ghc: sdist-ghc-prep
cd $(SRC_DIST_GHC_ROOT) && "$(TAR_CMD)" chf - $(SRC_DIST_BASE_NAME) 2> src_ghc_log | bzip2 > $(TOP)/$(SRC_DIST_GHC_TARBALL)
+
+.PHONY: sdist-windows-tarballs
+sdist-windows-tarballs: sdist-windows-tarballs-prep
cd $(SRC_DIST_WINDOWS_TARBALLS_ROOT) && "$(TAR_CMD)" chf - $(SRC_DIST_BASE_NAME) 2> windows_extra_src_ghc_log | bzip2 > $(TOP)/$(SRC_DIST_WINDOWS_TARBALLS_TARBALL)
+
+.PHONY: sdist-testsuite
+sdist-testsuite: sdist-testsuite-prep
cd $(SRC_DIST_TESTSUITE_ROOT) && "$(TAR_CMD)" chf - $(SRC_DIST_BASE_NAME) 2> testsuite_log | bzip2 > $(TOP)/$(SRC_DIST_TESTSUITE_TARBALL)
+
+.PHONY: sdist
+sdist : sdist-ghc sdist-windows-tarballs sdist-testsuite
+
sdist-manifest : $(SRC_DIST_GHC_TARBALL)
tar tjf $(SRC_DIST_GHC_TARBALL) | sed "s|^ghc-$(ProjectVersion)/||" | sort >sdist-manifest