[build-path-prefix-map-spec] 01/01: Rename spec.* to b-p-p-m-spec.* and add checks to the "all" target

Ximin Luo infinity0 at debian.org
Tue Mar 14 20:59:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository build-path-prefix-map-spec.

commit 8a0aed939e7f912dc13854b421520e75d7d1f82b
Author: Ximin Luo <infinity0 at debian.org>
Date:   Tue Mar 14 21:58:16 2017 +0100

    Rename spec.* to b-p-p-m-spec.* and add checks to the "all" target
---
 Makefile                                         | 18 ++++++++++++++----
 spec.in.rst => build-path-prefix-map-spec.in.rst |  0
 spec.in.xml => build-path-prefix-map-spec.in.xml |  0
 spec.xsl => build-path-prefix-map-spec.xsl       |  0
 4 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index f2211f0..a6d5a02 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
-all: spec.html
+SPEC = build-path-prefix-map-spec
+
+all: $(SPEC).html check-produce check-consume
 
 %.html: %.xml %.xsl fixup-footnotes.xsl
 	xmlto -x "$*.xsl" html-nochunks "$<"
@@ -8,7 +10,7 @@ all: spec.html
 	# ain't nobody got time to manually type XML tags
 	pandoc --template "$*.in.xml" -s "$<" -t docbook > "$@"
 
-spec.rst: spec.in.rst spec-testcases.rst
+$(SPEC).rst: $(SPEC).in.rst $(SPEC)-testcases.rst
 	cat $^ > "$@"
 
 T = testcases-pecsplit.rst
@@ -16,9 +18,17 @@ T = testcases-pecsplit.rst
 consume/$(T):
 	$(MAKE) -C consume $(T)
 
-spec-testcases.rst: consume/testcases-pecsplit.rst
+$(SPEC)-testcases.rst: consume/testcases-pecsplit.rst
 	cp "$<" "$@"
 
+.PHONY: check-consume
+check-consume:
+	cd consume && $(MAKE) check
+
+.PHONY: check-produce
+check-produce:
+	cd produce && ./test-all.sh
+
 .PHONY: clean
 clean:
-	rm -f *.html spec.xml spec-testcases.rst spec.rst
+	rm -f *.html $(SPEC).xml $(SPEC)-testcases.rst $(SPEC).rst
diff --git a/spec.in.rst b/build-path-prefix-map-spec.in.rst
similarity index 100%
rename from spec.in.rst
rename to build-path-prefix-map-spec.in.rst
diff --git a/spec.in.xml b/build-path-prefix-map-spec.in.xml
similarity index 100%
rename from spec.in.xml
rename to build-path-prefix-map-spec.in.xml
diff --git a/spec.xsl b/build-path-prefix-map-spec.xsl
similarity index 100%
rename from spec.xsl
rename to build-path-prefix-map-spec.xsl

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/build-path-prefix-map-spec.git



More information about the Reproducible-commits mailing list