PageRenderTime 33ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/pt/Makefile

https://gitlab.com/albertkeba/docs
Makefile | 132 lines | 107 code | 21 blank | 4 comment | 2 complexity | e40fa0be82e995ecc2a0560a2b4df05e MD5 | raw file
  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. BUILDDIR = ../build
  8. PYTHON = python
  9. LANG = pt
  10. # Internal variables.
  11. PAPEROPT_a4 = -D latex_paper_size=a4
  12. PAPEROPT_letter = -D latex_paper_size=letter
  13. ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees/$(LANG) $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
  14. .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
  15. help:
  16. @echo "Please use \`make <target>' where <target> is one of"
  17. @echo " html to make standalone HTML files"
  18. @echo " dirhtml to make HTML files named index.html in directories"
  19. @echo " singlehtml to make a single large HTML file"
  20. @echo " pickle to make pickle files"
  21. @echo " json to make JSON files"
  22. @echo " htmlhelp to make HTML files and a HTML help project"
  23. @echo " qthelp to make HTML files and a qthelp project"
  24. @echo " devhelp to make HTML files and a Devhelp project"
  25. @echo " epub to make an epub"
  26. @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
  27. @echo " latexpdf to make LaTeX files and run them through pdflatex"
  28. @echo " text to make text files"
  29. @echo " man to make manual pages"
  30. @echo " changes to make an overview of all changed/added/deprecated items"
  31. @echo " linkcheck to check all external links for integrity"
  32. @echo " doctest to run all doctests embedded in the documentation (if enabled)"
  33. clean:
  34. -rm -rf $(BUILDDIR)/*
  35. html:
  36. $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html/$(LANG)
  37. @echo
  38. @echo "Build finished. The HTML pages are in $(BUILDDIR)/html/$(LANG)."
  39. dirhtml:
  40. $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
  41. @echo
  42. @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
  43. singlehtml:
  44. $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
  45. @echo
  46. @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
  47. pickle:
  48. $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
  49. @echo
  50. @echo "Build finished; now you can process the pickle files."
  51. json:
  52. $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
  53. @echo
  54. @echo "Build finished; now you can process the JSON files."
  55. htmlhelp:
  56. $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp/$(LANG)
  57. @echo
  58. @echo "Build finished; now you can run HTML Help Workshop with the" \
  59. ".hhp project file in $(BUILDDIR)/htmlhelp/$(LANG)."
  60. qthelp:
  61. $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
  62. @echo
  63. @echo "Build finished; now you can run "qcollectiongenerator" with the" \
  64. ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
  65. @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/CakePHPCookbook.qhcp"
  66. @echo "To view the help file:"
  67. @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/CakePHPCookbook.qhc"
  68. devhelp:
  69. $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
  70. @echo
  71. @echo "Build finished."
  72. @echo "To view the help file:"
  73. @echo "# mkdir -p $$HOME/.local/share/devhelp/CakePHPCookbook"
  74. @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/CakePHPCookbook"
  75. @echo "# devhelp"
  76. epub:
  77. $(SPHINXBUILD) -b epub -D master_doc='epub-contents' $(ALLSPHINXOPTS) $(BUILDDIR)/epub/$(LANG)
  78. @echo
  79. @echo "Build finished. The epub file is in $(BUILDDIR)/epub/$(LANG)."
  80. latex:
  81. $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex/$(LANG)
  82. @echo
  83. @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex/$(LANG)."
  84. @echo "Run \`make' in that directory to run these through (pdf)latex" \
  85. "(use \`make latexpdf' here to do that automatically)."
  86. latexpdf:
  87. $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex/$(LANG)
  88. @echo "Running LaTeX files through pdflatex..."
  89. make -C $(BUILDDIR)/latex/$(LANG) all-pdf
  90. @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex/$(LANG)."
  91. text:
  92. $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
  93. @echo
  94. @echo "Build finished. The text files are in $(BUILDDIR)/text."
  95. man:
  96. $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
  97. @echo
  98. @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
  99. changes:
  100. $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
  101. @echo
  102. @echo "The overview file is in $(BUILDDIR)/changes."
  103. linkcheck:
  104. $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
  105. @echo
  106. @echo "Link check complete; look for any errors in the above output " \
  107. "or in $(BUILDDIR)/linkcheck/output.txt."
  108. doctest:
  109. $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
  110. @echo "Testing of doctests in the sources finished, look at the " \
  111. "results in $(BUILDDIR)/doctest/output.txt."