ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(PAPEROPT_$(PAPER)) \
$(SPHINXOPTS) $(SPHINXERRORHANDLING) . build/$(BUILDER) $(SOURCES)
-.PHONY: help build html htmlhelp latex text changes linkcheck \
+.PHONY: help build html htmlhelp latex text texinfo changes linkcheck \
suspicious coverage doctest pydoc-topics htmlview clean dist check serve \
autobuild-dev autobuild-stable venv
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " text to make plain text files"
+ @echo " texinfo to make Texinfo file"
@echo " epub to make EPUB files"
@echo " changes to make an overview over all changed/added/deprecated items"
@echo " linkcheck to check all external links for integrity"
text: build
@echo "Build finished; the text files are in build/text."
+texinfo: BUILDER = texinfo
+texinfo: build
+ @echo "Build finished; the python.texi file is in build/texinfo."
+ @echo "Run \`make info' in that directory to run it through makeinfo."
+
epub: BUILDER = epub
epub: build
@echo "Build finished; the epub files are in build/epub."
make epub
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
+ # archive the texinfo build
+ rm -rf build/texinfo
+ make texinfo
+ make info --directory=build/texinfo
+ cp -pPR build/texinfo dist/python-$(DISTVERSION)-docs-texinfo
+ tar -C dist -cf dist/python-$(DISTVERSION)-docs-texinfo.tar python-$(DISTVERSION)-docs-texinfo
+ bzip2 -9 -k dist/python-$(DISTVERSION)-docs-texinfo.tar
+ (cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-texinfo.zip python-$(DISTVERSION)-docs-texinfo)
+ rm -r dist/python-$(DISTVERSION)-docs-texinfo
+ rm dist/python-$(DISTVERSION)-docs-texinfo.tar
+
check:
$(PYTHON) tools/rstlint.py -i tools -i $(VENVDIR) -i README.rst