@@ -14,20 +14,27 @@ DISTVERSION = $(shell $(PYTHON) tools/sphinxext/patchlevel.py)
1414ALLSPHINXOPTS = -b $(BUILDER ) -d build/doctrees -D latex_paper_size=$(PAPER ) \
1515 $(SPHINXOPTS ) . build/$(BUILDER ) $(SOURCES )
1616
17- .PHONY : help checkout update build html htmlhelp clean coverage dist check
17+ .PHONY : help checkout update build html htmlhelp latex text changes linkcheck \
18+ suspicious coverage doctest pydoc-topics htmlview clean dist check serve \
19+ autobuild-dev autobuild-stable
1820
1921help :
2022 @echo " Please use \` make <target>' where <target> is one of"
21- @echo " html to make standalone HTML files"
22- @echo " htmlhelp to make HTML files and a HTML help project"
23- @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
24- @echo " text to make plain text files"
25- @echo " changes to make an overview over all changed/added/deprecated items"
26- @echo " linkcheck to check all external links for integrity"
23+ @echo " clean to remove build files"
24+ @echo " update to update build tools"
25+ @echo " html to make standalone HTML files"
26+ @echo " htmlhelp to make HTML files and a HTML help project"
27+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
28+ @echo " text to make plain text files"
29+ @echo " changes to make an overview over all changed/added/deprecated items"
30+ @echo " linkcheck to check all external links for integrity"
31+ @echo " coverage to check documentation coverage for library and C API"
32+ @echo " doctest to run doctests in the documentation"
33+ @echo " pydoc-topics to regenerate the pydoc topics file"
34+ @echo " dist to create a \" dist\" directory with archived docs for download"
2735 @echo " suspicious to check for suspicious markup in output text"
28- @echo " coverage to check documentation coverage for library and C API"
29- @echo " dist to create a \" dist\" directory with archived docs for download"
30- @echo " serve to serve the documentation on the localhost (8000)"
36+ @echo " check to run a check for frequent markup errors"
37+ @echo " serve to serve the documentation on the localhost (8000)"
3138
3239# Note: if you update versions here, do the same in make.bat and README.txt
3340checkout :
@@ -153,3 +160,17 @@ check:
153160
154161serve :
155162 ../Tools/scripts/serve.py build/html
163+
164+ # Targets for automatic doc build
165+
166+ # for development releases: always build
167+ autobuild-dev :
168+ make update
169+ make dist
170+
171+ # for stable releases: only build if not in development mode
172+ autobuild-stable :
173+ @case $(DISTVERSION ) in * [abc]* ) \
174+ echo " Not building; not a release version." ; exit 1;; \
175+ esac
176+ @make autobuild-dev
0 commit comments