[cairo-commit] build/Makefile.am.releasing

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Sep 18 16:37:23 PDT 2008


 build/Makefile.am.releasing |   30 +++++++++++++++++++++++-------
 1 file changed, 23 insertions(+), 7 deletions(-)

New commits:
commit b9c432862a25e4b18dfa2e7a2c5631cf9b235a21
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Sep 18 19:35:28 2008 -0400

    [Makefile.am.releasing] Make release-publish work with parallel build
    
    Carl had this confusing problem today making the snapshot, which was
    "make release-publish" erring.  This commit reworks the release-publish
    machinery to enforce serialization of some of the tasks such that it
    works with make -j.  Don't expect any speedup though as "make distcheck"
    is inherently sequential.

diff --git a/build/Makefile.am.releasing b/build/Makefile.am.releasing
index 9a03be6..eed5dbd 100644
--- a/build/Makefile.am.releasing
+++ b/build/Makefile.am.releasing
@@ -75,15 +75,17 @@ release-remove-old:
 	$(RM) $(tar_file) $(sha1_file) $(gpg_file)
 
 
+# Strict ordering enforced for parallel make to work
 release-check: \
+	release-verify-even-micro \
 	release-verify-sane-changelogs \
 	release-verify-sane-tests \
-	release-verify-even-micro \
 	release-verify-newer \
-	release-remove-old \
-	distcheck
+	$(NULL)
+	$(MAKE) $(AM_MAKEFLAGS) release-remove-old
+	$(MAKE) $(AM_MAKEFLAGS) distcheck
 
-release-upload: release-check $(tar_file) $(sha1_file) $(gpg_file)
+release-upload: $(tar_file) $(sha1_file) $(gpg_file)
 	mkdir -p releases
 	scp $(tar_file) $(sha1_file) $(gpg_file) $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR)
 	mv $(tar_file) $(sha1_file) $(gpg_file) releases
@@ -125,7 +127,10 @@ release-publish-message: releases/$(sha1_file)
 	@echo ""
 	@echo "============================== CUT HERE =============================="
 
-release-publish: release-upload release-publish-message
+# Strict ordering enforced for parallel make to work
+release-publish: release-check
+	$(MAKE) $(AM_MAKEFLAGS) release-upload
+	$(MAKE) $(AM_MAKEFLAGS) release-publish-message
 
 doc-publish: doc
 	rm -rf ./$(MANUAL_DATED)
@@ -157,5 +162,16 @@ zips: $(runtime_zip_file) $(developer_zip_file)
 endif
 
 
-.PHONY: release-verify-even-micro release-verify-newer release-remove-old release-cleanup-group-sticky release-check release-upload release-publish docs-publish
-
+.PHONY: \
+	dist-clear-sticky-bits \
+	docs-publish \
+	release-check \
+	release-publish \
+	release-publish-message \
+	release-remove-old \
+	release-upload \
+	release-verify-even-micro \
+	release-verify-newer \
+	release-verify-sane-changelogs \
+	release-verify-sane-tests \
+	$(NULL)


More information about the cairo-commit mailing list