annotate doc/Makefile @ 455:7dae98b84cdd tip master

Merge branch 'master' of https://github.com/amsehili/auditok
author www-data <www-data@c4dm-xenserv-virt2.eecs.qmul.ac.uk>
date Tue, 03 Dec 2024 09:18:01 +0000
parents 2beb3fb562f3
children
rev   line source
amine@23 1 # Makefile for Sphinx documentation
amine@23 2 #
amine@23 3
amine@23 4 # You can set these variables from the command line.
amine@23 5 SPHINXOPTS =
amine@23 6 SPHINXBUILD = sphinx-build
amine@23 7 PAPER =
amine@23 8 BUILDDIR = _build
amine@23 9
amine@23 10 # User-friendly check for sphinx-build
amine@23 11 ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
amine@23 12 $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
amine@23 13 endif
amine@23 14
amine@23 15 # Internal variables.
amine@23 16 PAPEROPT_a4 = -D latex_paper_size=a4
amine@23 17 PAPEROPT_letter = -D latex_paper_size=letter
amine@23 18 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
amine@23 19 # the i18n builder cannot share the environment and doctrees with the others
amine@23 20 I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
amine@23 21
amine@23 22 .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
amine@23 23
amine@23 24 help:
amine@23 25 @echo "Please use \`make <target>' where <target> is one of"
amine@23 26 @echo " html to make standalone HTML files"
amine@23 27 @echo " dirhtml to make HTML files named index.html in directories"
amine@23 28 @echo " singlehtml to make a single large HTML file"
amine@23 29 @echo " pickle to make pickle files"
amine@23 30 @echo " json to make JSON files"
amine@23 31 @echo " htmlhelp to make HTML files and a HTML help project"
amine@23 32 @echo " qthelp to make HTML files and a qthelp project"
amine@23 33 @echo " applehelp to make an Apple Help Book"
amine@23 34 @echo " devhelp to make HTML files and a Devhelp project"
amine@23 35 @echo " epub to make an epub"
amine@23 36 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
amine@23 37 @echo " latexpdf to make LaTeX files and run them through pdflatex"
amine@23 38 @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
amine@23 39 @echo " text to make text files"
amine@23 40 @echo " man to make manual pages"
amine@23 41 @echo " texinfo to make Texinfo files"
amine@23 42 @echo " info to make Texinfo files and run them through makeinfo"
amine@23 43 @echo " gettext to make PO message catalogs"
amine@23 44 @echo " changes to make an overview of all changed/added/deprecated items"
amine@23 45 @echo " xml to make Docutils-native XML files"
amine@23 46 @echo " pseudoxml to make pseudoxml-XML files for display purposes"
amine@23 47 @echo " linkcheck to check all external links for integrity"
amine@23 48 @echo " doctest to run all doctests embedded in the documentation (if enabled)"
amine@23 49 @echo " coverage to run coverage check of the documentation (if enabled)"
amine@23 50
amine@23 51 clean:
amine@23 52 rm -rf $(BUILDDIR)/*
amine@23 53
amine@23 54 html:
amine@23 55 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
amine@23 56 @echo
amine@23 57 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
amine@23 58
amine@23 59 dirhtml:
amine@23 60 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
amine@23 61 @echo
amine@23 62 @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
amine@23 63
amine@23 64 singlehtml:
amine@23 65 $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
amine@23 66 @echo
amine@23 67 @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
amine@23 68
amine@23 69 pickle:
amine@23 70 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
amine@23 71 @echo
amine@23 72 @echo "Build finished; now you can process the pickle files."
amine@23 73
amine@23 74 json:
amine@23 75 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
amine@23 76 @echo
amine@23 77 @echo "Build finished; now you can process the JSON files."
amine@23 78
amine@23 79 htmlhelp:
amine@23 80 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
amine@23 81 @echo
amine@23 82 @echo "Build finished; now you can run HTML Help Workshop with the" \
amine@23 83 ".hhp project file in $(BUILDDIR)/htmlhelp."
amine@23 84
amine@23 85 qthelp:
amine@23 86 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
amine@23 87 @echo
amine@23 88 @echo "Build finished; now you can run "qcollectiongenerator" with the" \
amine@23 89 ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
amine@23 90 @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/auditok.qhcp"
amine@23 91 @echo "To view the help file:"
amine@23 92 @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/auditok.qhc"
amine@23 93
amine@23 94 applehelp:
amine@23 95 $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
amine@23 96 @echo
amine@23 97 @echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
amine@23 98 @echo "N.B. You won't be able to view it unless you put it in" \
amine@23 99 "~/Library/Documentation/Help or install it in your application" \
amine@23 100 "bundle."
amine@23 101
amine@23 102 devhelp:
amine@23 103 $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
amine@23 104 @echo
amine@23 105 @echo "Build finished."
amine@23 106 @echo "To view the help file:"
amine@23 107 @echo "# mkdir -p $$HOME/.local/share/devhelp/auditok"
amine@23 108 @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/auditok"
amine@23 109 @echo "# devhelp"
amine@23 110
amine@23 111 epub:
amine@23 112 $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
amine@23 113 @echo
amine@23 114 @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
amine@23 115
amine@23 116 latex:
amine@23 117 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
amine@23 118 @echo
amine@23 119 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
amine@23 120 @echo "Run \`make' in that directory to run these through (pdf)latex" \
amine@23 121 "(use \`make latexpdf' here to do that automatically)."
amine@23 122
amine@23 123 latexpdf:
amine@23 124 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
amine@23 125 @echo "Running LaTeX files through pdflatex..."
amine@23 126 $(MAKE) -C $(BUILDDIR)/latex all-pdf
amine@23 127 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
amine@23 128
amine@23 129 latexpdfja:
amine@23 130 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
amine@23 131 @echo "Running LaTeX files through platex and dvipdfmx..."
amine@23 132 $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
amine@23 133 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
amine@23 134
amine@23 135 text:
amine@23 136 $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
amine@23 137 @echo
amine@23 138 @echo "Build finished. The text files are in $(BUILDDIR)/text."
amine@23 139
amine@23 140 man:
amine@23 141 $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
amine@23 142 @echo
amine@23 143 @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
amine@23 144
amine@23 145 texinfo:
amine@23 146 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
amine@23 147 @echo
amine@23 148 @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
amine@23 149 @echo "Run \`make' in that directory to run these through makeinfo" \
amine@23 150 "(use \`make info' here to do that automatically)."
amine@23 151
amine@23 152 info:
amine@23 153 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
amine@23 154 @echo "Running Texinfo files through makeinfo..."
amine@23 155 make -C $(BUILDDIR)/texinfo info
amine@23 156 @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
amine@23 157
amine@23 158 gettext:
amine@23 159 $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
amine@23 160 @echo
amine@23 161 @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
amine@23 162
amine@23 163 changes:
amine@23 164 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
amine@23 165 @echo
amine@23 166 @echo "The overview file is in $(BUILDDIR)/changes."
amine@23 167
amine@23 168 linkcheck:
amine@23 169 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
amine@23 170 @echo
amine@23 171 @echo "Link check complete; look for any errors in the above output " \
amine@23 172 "or in $(BUILDDIR)/linkcheck/output.txt."
amine@23 173
amine@23 174 doctest:
amine@23 175 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
amine@23 176 @echo "Testing of doctests in the sources finished, look at the " \
amine@23 177 "results in $(BUILDDIR)/doctest/output.txt."
amine@23 178
amine@23 179 coverage:
amine@23 180 $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
amine@23 181 @echo "Testing of coverage in the sources finished, look at the " \
amine@23 182 "results in $(BUILDDIR)/coverage/python.txt."
amine@23 183
amine@23 184 xml:
amine@23 185 $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
amine@23 186 @echo
amine@23 187 @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
amine@23 188
amine@23 189 pseudoxml:
amine@23 190 $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
amine@23 191 @echo
amine@23 192 @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."