Makefile 2.5 KB

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