Makefile 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Copyright (c) 2011 - 2013 Stefano Mazzucco <stefano -at- curso.re>
  2. # All rights reserved.
  3. #
  4. # This file is part of Crystal Ball Plus.
  5. #
  6. # Crystal Ball Plus is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # Crystal Ball Plus is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with Crystal Ball Plus. If not, see <http://www.gnu.org/licenses/>.
  18. # Makefile for Sphinx documentation
  19. # You can set these variables from the command line.
  20. SPHINXOPTS =
  21. SPHINXBUILD = sphinx-build
  22. PAPER =
  23. BUILDDIR = _build
  24. # Internal variables.
  25. PAPEROPT_a4 = -D latex_paper_size=a4
  26. PAPEROPT_letter = -D latex_paper_size=letter
  27. ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
  28. .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
  29. help:
  30. @echo "Please use \`make <target>' where <target> is one of"
  31. @echo " html to make standalone HTML files"
  32. @echo " dirhtml to make HTML files named index.html in directories"
  33. @echo " pickle to make pickle files"
  34. @echo " json to make JSON files"
  35. @echo " htmlhelp to make HTML files and a HTML help project"
  36. @echo " qthelp to make HTML files and a qthelp project"
  37. @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
  38. @echo " changes to make an overview of all changed/added/deprecated items"
  39. @echo " linkcheck to check all external links for integrity"
  40. @echo " doctest to run all doctests embedded in the documentation (if enabled)"
  41. clean:
  42. -rm -rf $(BUILDDIR)/*
  43. html:
  44. $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
  45. @echo
  46. @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
  47. dirhtml:
  48. $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
  49. @echo
  50. @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
  51. pickle:
  52. $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
  53. @echo
  54. @echo "Build finished; now you can process the pickle files."
  55. json:
  56. $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
  57. @echo
  58. @echo "Build finished; now you can process the JSON files."
  59. htmlhelp:
  60. $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
  61. @echo
  62. @echo "Build finished; now you can run HTML Help Workshop with the" \
  63. ".hhp project file in $(BUILDDIR)/htmlhelp."
  64. qthelp:
  65. $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
  66. @echo
  67. @echo "Build finished; now you can run "qcollectiongenerator" with the" \
  68. ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
  69. @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/NISTCrystalBall.qhcp"
  70. @echo "To view the help file:"
  71. @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/NISTCrystalBall.qhc"
  72. latex:
  73. $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
  74. @echo
  75. @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
  76. @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
  77. "run these through (pdf)latex."
  78. changes:
  79. $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
  80. @echo
  81. @echo "The overview file is in $(BUILDDIR)/changes."
  82. linkcheck:
  83. $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
  84. @echo
  85. @echo "Link check complete; look for any errors in the above output " \
  86. "or in $(BUILDDIR)/linkcheck/output.txt."
  87. doctest:
  88. $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
  89. @echo "Testing of doctests in the sources finished, look at the " \
  90. "results in $(BUILDDIR)/doctest/output.txt."