|
| 1 | +# Makefile for Sphinx documentation |
| 2 | +# |
| 3 | + |
| 4 | +# You can set these variables from the command line. |
| 5 | +SPHINXOPTS = |
| 6 | +SPHINXBUILD = sphinx-build |
| 7 | +PAPER = |
| 8 | +BUILDDIR = build |
| 9 | + |
| 10 | + |
| 11 | +# Internal variables. |
| 12 | +PAPEROPT_a4 = -D latex_paper_size=a4 |
| 13 | +PAPEROPT_letter = -D latex_paper_size=letter |
| 14 | +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source |
| 15 | + |
| 16 | +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest |
| 17 | + |
| 18 | +help: |
| 19 | + @echo "Please use \`make <target>' where <target> is one of" |
| 20 | + @echo " html to make standalone HTML files" |
| 21 | + @echo " dirhtml to make HTML files named index.html in directories" |
| 22 | + @echo " offhtml to make standalone HTML files without fetching the new theme files" |
| 23 | + @echo " singlehtml to make a single large HTML file" |
| 24 | + @echo " pickle to make pickle files" |
| 25 | + @echo " json to make JSON files" |
| 26 | + @echo " htmlhelp to make HTML files and a HTML help project" |
| 27 | + @echo " qthelp to make HTML files and a qthelp project" |
| 28 | + @echo " devhelp to make HTML files and a Devhelp project" |
| 29 | + @echo " epub to make an epub" |
| 30 | + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" |
| 31 | + @echo " latexpdf to make LaTeX files and run them through pdflatex" |
| 32 | + @echo " text to make text files" |
| 33 | + @echo " man to make manual pages" |
| 34 | + @echo " changes to make an overview of all changed/added/deprecated items" |
| 35 | + @echo " linkcheck to check all external links for integrity" |
| 36 | + @echo " doctest to run all doctests embedded in the documentation (if enabled)" |
| 37 | + |
| 38 | +clean: |
| 39 | + -rm -rf $(BUILDDIR)/* |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +pickle: |
| 44 | + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle |
| 45 | + @echo |
| 46 | + @echo "Build finished; now you can process the pickle files." |
| 47 | + |
| 48 | +json: |
| 49 | + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json |
| 50 | + @echo |
| 51 | + @echo "Build finished; now you can process the JSON files." |
| 52 | + |
| 53 | +htmlhelp: |
| 54 | + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp |
| 55 | + @echo |
| 56 | + @echo "Build finished; now you can run HTML Help Workshop with the" \ |
| 57 | + ".hhp project file in $(BUILDDIR)/htmlhelp." |
| 58 | + |
| 59 | +qthelp: |
| 60 | + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp |
| 61 | + @echo |
| 62 | + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ |
| 63 | + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" |
| 64 | + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/PerconaServer.qhcp" |
| 65 | + @echo "To view the help file:" |
| 66 | + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/PerconaServer.qhc" |
| 67 | + |
| 68 | +devhelp: |
| 69 | + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp |
| 70 | + @echo |
| 71 | + @echo "Build finished." |
| 72 | + @echo "To view the help file:" |
| 73 | + @echo "# mkdir -p $$HOME/.local/share/devhelp/PerconaServer" |
| 74 | + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/PerconaServer" |
| 75 | + @echo "# devhelp" |
| 76 | + |
| 77 | + |
| 78 | +text: |
| 79 | + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text |
| 80 | + @echo |
| 81 | + @echo "Build finished. The text files are in $(BUILDDIR)/text." |
| 82 | + |
| 83 | +man: |
| 84 | + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man |
| 85 | + @echo |
| 86 | + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." |
| 87 | + |
| 88 | +changes: |
| 89 | + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes |
| 90 | + @echo |
| 91 | + @echo "The overview file is in $(BUILDDIR)/changes." |
| 92 | + |
| 93 | +linkcheck: ext |
| 94 | + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck |
| 95 | + @echo |
| 96 | + @echo "Link check complete; look for any errors in the above output " \ |
| 97 | + "or in $(BUILDDIR)/linkcheck/output.txt." |
| 98 | + |
| 99 | +doctest: |
| 100 | + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest |
| 101 | + @echo "Testing of doctests in the sources finished, look at the " \ |
| 102 | + "results in $(BUILDDIR)/doctest/output.txt." |
| 103 | + |
0 commit comments