Makefile 3.2 KB

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