2
0

Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. arshaw:
  29. mkdir -p build/html build/doctrees
  30. $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html
  31. cp -r build/html/* /var/www/arshaw/pages/fullcalendar/docs/
  32. @echo
  33. @echo "Build finished. The HTML pages are in build/html."
  34. pickle:
  35. mkdir -p build/pickle build/doctrees
  36. $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle
  37. @echo
  38. @echo "Build finished; now you can process the pickle files."
  39. web: pickle
  40. json:
  41. mkdir -p build/json build/doctrees
  42. $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) build/json
  43. @echo
  44. @echo "Build finished; now you can process the JSON files."
  45. htmlhelp:
  46. mkdir -p build/htmlhelp build/doctrees
  47. $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp
  48. @echo
  49. @echo "Build finished; now you can run HTML Help Workshop with the" \
  50. ".hhp project file in build/htmlhelp."
  51. latex:
  52. mkdir -p build/latex build/doctrees
  53. $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
  54. @echo
  55. @echo "Build finished; the LaTeX files are in build/latex."
  56. @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
  57. "run these through (pdf)latex."
  58. changes:
  59. mkdir -p build/changes build/doctrees
  60. $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes
  61. @echo
  62. @echo "The overview file is in build/changes."
  63. linkcheck:
  64. mkdir -p build/linkcheck build/doctrees
  65. $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck
  66. @echo
  67. @echo "Link check complete; look for any errors in the above output " \
  68. "or in build/linkcheck/output.txt."