Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. # 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 web pickle htmlhelp latex changes linkcheck
  12. help:
  13. @echo "Please use \`make <target>' where <target> is one of"
  14. @echo " html to make standalone HTML files"
  15. @echo " pickle to make pickle files (usable by e.g. sphinx-web)"
  16. @echo " htmlhelp to make HTML files and a HTML help project"
  17. @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
  18. @echo " changes to make an overview over all changed/added/deprecated items"
  19. @echo " linkcheck to check all external links for integrity"
  20. clean:
  21. -rm -rf _build/*
  22. html:
  23. mkdir -p _build/html _build/doctrees
  24. $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
  25. @echo
  26. @echo "Build finished. The HTML pages are in _build/html."
  27. pickle:
  28. mkdir -p _build/pickle _build/doctrees
  29. $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
  30. @echo
  31. @echo "Build finished; now you can process the pickle files or run"
  32. @echo " sphinx-web _build/pickle"
  33. @echo "to start the sphinx-web server."
  34. web: pickle
  35. htmlhelp:
  36. mkdir -p _build/htmlhelp _build/doctrees
  37. $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
  38. @echo
  39. @echo "Build finished; now you can run HTML Help Workshop with the" \
  40. ".hhp project file in _build/htmlhelp."
  41. latex:
  42. mkdir -p _build/latex _build/doctrees
  43. $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
  44. @echo
  45. @echo "Build finished; the LaTeX files are in _build/latex."
  46. @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
  47. "run these through (pdf)latex."
  48. changes:
  49. mkdir -p _build/changes _build/doctrees
  50. $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
  51. @echo
  52. @echo "The overview file is in _build/changes."
  53. linkcheck:
  54. mkdir -p _build/linkcheck _build/doctrees
  55. $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
  56. @echo
  57. @echo "Link check complete; look for any errors in the above output " \
  58. "or in _build/linkcheck/output.txt."