|
| 1 | +# Makefile for Sphinx documentation |
| 2 | + |
| 3 | +# You can set these variables from the command line. |
| 4 | +SPHINXOPTS = -W --keep-going |
| 5 | +SPHINXBUILD = sphinx-build |
| 6 | +PAPER = |
| 7 | +BUILDDIR = build |
| 8 | +SOURCEDIR = source |
| 9 | + |
| 10 | +# Internal variables |
| 11 | +PAPEROPT_a4 = -D latex_paper_size=a4 |
| 12 | +PAPEROPT_letter = -D latex_paper_size=letter |
| 13 | +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR) |
| 14 | +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext |
| 15 | + |
| 16 | +help: |
| 17 | + @echo "Please use \`make <target>' where <target> is one of" |
| 18 | + @echo " html to make standalone HTML files" |
| 19 | + @echo " dirhtml to make HTML files named index.html in directories" |
| 20 | + @echo " singlehtml to make a single large HTML file" |
| 21 | + @echo " pickle to make pickle files" |
| 22 | + @echo " json to make JSON files" |
| 23 | + @echo " htmlhelp to make HTML files and a HTML help project" |
| 24 | + @echo " qthelp to make HTML files and a qthelp project" |
| 25 | + @echo " devhelp to make HTML files and a Devhelp project" |
| 26 | + @echo " epub to make an EPUB file" |
| 27 | + @echo " latex to make LaTeX files" |
| 28 | + @echo " latexpdf to make LaTeX files and run them through pdflatex" |
| 29 | + @echo " latexpdfja to make LaTeX files and run them through Japanese pdflatex" |
| 30 | + @echo " text to make text files" |
| 31 | + @echo " man to make manual pages" |
| 32 | + @echo " texinfo to make Texinfo files" |
| 33 | + @echo " gettext to make PO message catalogs" |
| 34 | + @echo " changes to make an overview of all changed/added/deprecated items" |
| 35 | + @echo " xml to make Docutils-native XML files" |
| 36 | + @echo " pseudoxml to make pseudoxml-XML files for display purposes" |
| 37 | + @echo " linkcheck to check all external links for integrity" |
| 38 | + @echo " doctest to run all doctests embedded in the documentation (if enabled)" |
| 39 | + @echo " coverage to run coverage check of the documentation (if enabled)" |
| 40 | + |
| 41 | +clean: |
| 42 | + -rm -rf $(BUILDDIR)/* |
| 43 | + |
| 44 | +html: |
| 45 | + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html |
| 46 | + @echo |
| 47 | + @echo "Build finished. The HTML files are in $(BUILDDIR)/html." |
| 48 | + |
| 49 | +dirhtml: |
| 50 | + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml |
| 51 | + @echo |
| 52 | + @echo "Build finished. The HTML files are in $(BUILDDIR)/dirhtml." |
| 53 | + |
| 54 | +singlehtml: |
| 55 | + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml |
| 56 | + @echo |
| 57 | + @echo "Build finished. The singlehtml files are in $(BUILDDIR)/singlehtml." |
| 58 | + |
| 59 | +pickle: |
| 60 | + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle |
| 61 | + @echo |
| 62 | + @echo "Build finished. The pickle files are in $(BUILDDIR)/pickle." |
| 63 | + |
| 64 | +json: |
| 65 | + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json |
| 66 | + @echo |
| 67 | + @echo "Build finished. The JSON files are in $(BUILDDIR)/json." |
| 68 | + |
| 69 | +htmlhelp: |
| 70 | + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp |
| 71 | + @echo |
| 72 | + @echo "Build finished. The htmlhelp files are in $(BUILDDIR)/htmlhelp." |
| 73 | + |
| 74 | +qthelp: |
| 75 | + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp |
| 76 | + @echo |
| 77 | + @echo "Build finished. The qthelp files are in $(BUILDDIR)/qthelp." |
| 78 | + |
| 79 | +devhelp: |
| 80 | + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp |
| 81 | + @echo |
| 82 | + @echo "Build finished. The devhelp files are in $(BUILDDIR)/devhelp." |
| 83 | + |
| 84 | +epub: |
| 85 | + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub |
| 86 | + @echo |
| 87 | + @echo "Build finished. The epub files are in $(BUILDDIR)/epub." |
| 88 | + |
| 89 | +latex: |
| 90 | + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex |
| 91 | + @echo |
| 92 | + @echo "Build finished. The latex files are in $(BUILDDIR)/latex." |
| 93 | + |
| 94 | +latexpdf: |
| 95 | + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex |
| 96 | + @echo "Running LaTeX files through pdflatex..." |
| 97 | + $(MAKE) -C $(BUILDDIR)/latex all-pdf |
| 98 | + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." |
| 99 | + |
| 100 | +latexpdfja: |
| 101 | + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex |
| 102 | + @echo "Running LaTeX files through Japanese pdflatex..." |
| 103 | + $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja |
| 104 | + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." |
| 105 | + |
| 106 | +text: |
| 107 | + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text |
| 108 | + @echo |
| 109 | + @echo "Build finished. The text files are in $(BUILDDIR)/text." |
| 110 | + |
| 111 | +man: |
| 112 | + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man |
| 113 | + @echo |
| 114 | + @echo "Build finished. The man files are in $(BUILDDIR)/man." |
| 115 | + |
| 116 | +texinfo: |
| 117 | + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo |
| 118 | + @echo |
| 119 | + @echo "Build finished. The texinfo files are in $(BUILDDIR)/texinfo." |
| 120 | + |
| 121 | +gettext: |
| 122 | + $(SPHINXBUILD) -b gettext $(ALLSPHINXOPTS) $(BUILDDIR)/locale |
| 123 | + @echo |
| 124 | + @echo "Build finished. The gettext files are in $(BUILDDIR)/locale." |
| 125 | + |
| 126 | +changes: |
| 127 | + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes |
| 128 | + @echo |
| 129 | + @echo "The overview file is in $(BUILDDIR)/changes." |
| 130 | + |
| 131 | +linkcheck: |
| 132 | + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck |
| 133 | + @echo |
| 134 | + @echo "Link check complete; look for any errors in the above output or in $(BUILDDIR)/linkcheck/index.html." |
| 135 | + |
| 136 | +doctest: |
| 137 | + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest |
| 138 | + @echo |
| 139 | + @echo "Doctest complete; look for any errors in the above output or in $(BUILDDIR)/doctest/index.html." |
| 140 | + |
| 141 | +coverage: |
| 142 | + $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage |
| 143 | + @echo |
| 144 | + @echo "Coverage complete; look for any errors in the above output or in $(BUILDDIR)/coverage/html/index.html." |
| 145 | + |
| 146 | +xml: |
| 147 | + $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml |
| 148 | + @echo |
| 149 | + @echo "Build finished. The xml files are in $(BUILDDIR)/xml." |
| 150 | + |
| 151 | +pseudoxml: |
| 152 | + $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml |
| 153 | + @echo |
| 154 | + @echo "Build finished. The pseudoxml files are in $(BUILDDIR)/pseudoxml." |
0 commit comments