Makefile 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Makefile for Sphinx documentation
  2. #
  3. # You can set these variables from the command line.
  4. SPHINXOPTS =
  5. SPHINXBUILD = sphinx-build
  6. PAPER =
  7. BUILDDIR = build
  8. # Internal variables.
  9. PAPEROPT_a4 = -D latex_paper_size=a4
  10. PAPEROPT_letter = -D latex_paper_size=letter
  11. ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
  12. .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
  13. help:
  14. @echo "Please use \`make <target>' where <target> is one of"
  15. @echo " html to make standalone HTML files"
  16. @echo " dirhtml to make HTML files named index.html in directories"
  17. @echo " pickle to make pickle files"
  18. @echo " json to make JSON files"
  19. @echo " htmlhelp to make HTML files and a HTML help project"
  20. @echo " qthelp to make HTML files and a qthelp project"
  21. @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
  22. @echo " changes to make an overview of all changed/added/deprecated items"
  23. @echo " linkcheck to check all external links for integrity"
  24. @echo " doctest to run all doctests embedded in the documentation (if enabled)"
  25. clean:
  26. -rm -rf $(BUILDDIR)/*
  27. html:
  28. $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
  29. @echo
  30. @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
  31. dirhtml:
  32. $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
  33. @echo
  34. @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
  35. pickle:
  36. $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
  37. @echo
  38. @echo "Build finished; now you can process the pickle files."
  39. json:
  40. $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
  41. @echo
  42. @echo "Build finished; now you can process the JSON files."
  43. htmlhelp:
  44. $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
  45. @echo
  46. @echo "Build finished; now you can run HTML Help Workshop with the" \
  47. ".hhp project file in $(BUILDDIR)/htmlhelp."
  48. qthelp:
  49. $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
  50. @echo
  51. @echo "Build finished; now you can run "qcollectiongenerator" with the" \
  52. ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
  53. @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/neo.qhcp"
  54. @echo "To view the help file:"
  55. @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/neo.qhc"
  56. latex:
  57. $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
  58. @echo
  59. @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
  60. @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
  61. "run these through (pdf)latex."
  62. changes:
  63. $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
  64. @echo
  65. @echo "The overview file is in $(BUILDDIR)/changes."
  66. linkcheck:
  67. $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
  68. @echo
  69. @echo "Link check complete; look for any errors in the above output " \
  70. "or in $(BUILDDIR)/linkcheck/output.txt."
  71. doctest:
  72. $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
  73. @echo "Testing of doctests in the sources finished, look at the " \
  74. "results in $(BUILDDIR)/doctest/output.txt."