[commit: ghc] master: Individual sdist-foo targets (50e4d40)

git at git.haskell.org git at git.haskell.org
Fri Jan 31 23:32:14 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/50e4d40f88c3eee41384efacfd83f73305e2210d/ghc

>---------------------------------------------------------------

commit 50e4d40f88c3eee41384efacfd83f73305e2210d
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Fri Jan 31 23:31:30 2014 +0000

    Individual sdist-foo targets
    
    so that one can build a source distribution without downloading the
    windows tarballs.


>---------------------------------------------------------------

50e4d40f88c3eee41384efacfd83f73305e2210d
 ghc.mk |   14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/ghc.mk b/ghc.mk
index 0d30554..6628878 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
 



More information about the ghc-commits mailing list