summaryrefslogtreecommitdiffstats
path: root/Doc/Makefile
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-07-22 07:24:25 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-07-22 07:24:25 (GMT)
commit17f5f817de1b9ad8cdff783838f9d44a6a920ae5 (patch)
treed7db21f531dec2c79a301e5f6ffa7f6346c45554 /Doc/Makefile
parentdfab935c74745133234dded912ec1b0721888505 (diff)
downloadcpython-17f5f817de1b9ad8cdff783838f9d44a6a920ae5.zip
cpython-17f5f817de1b9ad8cdff783838f9d44a6a920ae5.tar.gz
cpython-17f5f817de1b9ad8cdff783838f9d44a6a920ae5.tar.bz2
Issue #15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
now display special message when and only when there are failures.
Diffstat (limited to 'Doc/Makefile')
-rw-r--r--Doc/Makefile26
1 files changed, 16 insertions, 10 deletions
diff --git a/Doc/Makefile b/Doc/Makefile
index 370c3fa..43dd804 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -69,24 +69,30 @@ changes: build
@echo "The overview file is in build/changes."
linkcheck: BUILDER = linkcheck
-linkcheck: build
- @echo "Link check complete; look for any errors in the above output" \
- "or in build/$(BUILDER)/output.txt"
+linkcheck:
+ @$(MAKE) build BUILDER=$(BUILDER) || { \
+ echo "Link check complete; look for any errors in the above output" \
+ "or in build/$(BUILDER)/output.txt"; \
+ false; }
suspicious: BUILDER = suspicious
-suspicious: build
- @echo "Suspicious check complete; look for any errors in the above output" \
- "or in build/$(BUILDER)/suspicious.csv. If all issues are false" \
- "positives, append that file to tools/sphinxext/susp-ignored.csv."
+suspicious:
+ @$(MAKE) build BUILDER=$(BUILDER) || { \
+ echo "Suspicious check complete; look for any errors in the above output" \
+ "or in build/$(BUILDER)/suspicious.csv. If all issues are false" \
+ "positives, append that file to tools/sphinxext/susp-ignored.csv."; \
+ false; }
coverage: BUILDER = coverage
coverage: build
@echo "Coverage finished; see c.txt and python.txt in build/coverage"
doctest: BUILDER = doctest
-doctest: build
- @echo "Testing of doctests in the sources finished, look at the" \
- "results in build/doctest/output.txt"
+doctest:
+ @$(MAKE) build BUILDER=$(BUILDER) || { \
+ echo "Testing of doctests in the sources finished, look at the" \
+ "results in build/doctest/output.txt"; \
+ false; }
pydoc-topics: BUILDER = pydoc-topics
pydoc-topics: build