Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 1 | # Makefile for Sphinx documentation |
| 2 | # |
| 3 | |
| 4 | # You can set these variables from the command line. |
| 5 | SPHINXOPTS = |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 6 | SRC_DOC_DIR = $(WS_ROOT)/test/doc |
| 7 | SPHINXBUILD = sphinx-build |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 8 | PAPER = |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 9 | BUILD_DOC_ROOT = $(BR)/test-doc |
| 10 | BUILD_DOC_DIR = $(BUILD_DOC_ROOT)/build |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 11 | |
| 12 | # Internal variables. |
| 13 | PAPEROPT_a4 = -D latex_paper_size=a4 |
| 14 | PAPEROPT_letter = -D latex_paper_size=letter |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 15 | ALLSPHINXOPTS = -d $(BUILD_DOC_DIR)/.sphinx-cache $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SRC_DOC_DIR) |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 16 | # the i18n builder cannot share the environment and doctrees with the others |
| 17 | I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 18 | IN_VENV:=$(shell if pip -V | grep "virtualenv" 2>&1 > /dev/null; then echo 1; else echo 0; fi) |
| 19 | |
| 20 | .PHONY: verify-virtualenv |
| 21 | verify-virtualenv: |
| 22 | ifeq ($(IN_VENV),0) |
| 23 | $(error "Not running inside virtualenv (are you running 'make test-doc' from root?)") |
| 24 | endif |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 25 | |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 26 | .PHONY: help |
| 27 | help: |
| 28 | @echo "Please use \`make <target>' where <target> is one of" |
| 29 | @echo " html to make standalone HTML files" |
| 30 | @echo " dirhtml to make HTML files named index.html in directories" |
| 31 | @echo " singlehtml to make a single large HTML file" |
| 32 | @echo " pickle to make pickle files" |
| 33 | @echo " json to make JSON files" |
| 34 | @echo " htmlhelp to make HTML files and a HTML help project" |
| 35 | @echo " qthelp to make HTML files and a qthelp project" |
| 36 | @echo " applehelp to make an Apple Help Book" |
| 37 | @echo " devhelp to make HTML files and a Devhelp project" |
| 38 | @echo " epub to make an epub" |
| 39 | @echo " epub3 to make an epub3" |
| 40 | @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" |
| 41 | @echo " latexpdf to make LaTeX files and run them through pdflatex" |
| 42 | @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" |
| 43 | @echo " text to make text files" |
| 44 | @echo " man to make manual pages" |
| 45 | @echo " texinfo to make Texinfo files" |
| 46 | @echo " info to make Texinfo files and run them through makeinfo" |
| 47 | @echo " gettext to make PO message catalogs" |
| 48 | @echo " changes to make an overview of all changed/added/deprecated items" |
| 49 | @echo " xml to make Docutils-native XML files" |
| 50 | @echo " pseudoxml to make pseudoxml-XML files for display purposes" |
| 51 | @echo " linkcheck to check all external links for integrity" |
| 52 | @echo " doctest to run all doctests embedded in the documentation (if enabled)" |
| 53 | @echo " coverage to run coverage check of the documentation (if enabled)" |
| 54 | @echo " dummy to check syntax errors of document sources" |
| 55 | |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 56 | .PHONY: wipe |
| 57 | wipe: |
| 58 | rm -rf $(BUILD_DOC_ROOT) |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 59 | |
| 60 | .PHONY: html |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 61 | html: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 62 | $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/html |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 63 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 64 | @echo "Build finished. The HTML pages are in $(BUILD_DOC_DIR)/html." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 65 | |
| 66 | .PHONY: dirhtml |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 67 | dirhtml: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 68 | $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/dirhtml |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 69 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 70 | @echo "Build finished. The HTML pages are in $(BUILD_DOC_DIR)/dirhtml." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 71 | |
| 72 | .PHONY: singlehtml |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 73 | singlehtml: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 74 | $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/singlehtml |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 75 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 76 | @echo "Build finished. The HTML page is in $(BUILD_DOC_DIR)/singlehtml." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 77 | |
| 78 | .PHONY: pickle |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 79 | pickle: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 80 | $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/pickle |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 81 | @echo |
| 82 | @echo "Build finished; now you can process the pickle files." |
| 83 | |
| 84 | .PHONY: json |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 85 | json: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 86 | $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/json |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 87 | @echo |
| 88 | @echo "Build finished; now you can process the JSON files." |
| 89 | |
| 90 | .PHONY: htmlhelp |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 91 | htmlhelp: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 92 | $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/htmlhelp |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 93 | @echo |
| 94 | @echo "Build finished; now you can run HTML Help Workshop with the" \ |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 95 | ".hhp project file in $(BUILD_DOC_DIR)/htmlhelp." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 96 | |
| 97 | .PHONY: qthelp |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 98 | qthelp: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 99 | $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/qthelp |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 100 | @echo |
| 101 | @echo "Build finished; now you can run "qcollectiongenerator" with the" \ |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 102 | ".qhcp project file in $(BUILD_DOC_DIR)/qthelp, like this:" |
| 103 | @echo "# qcollectiongenerator $(BUILD_DOC_DIR)/qthelp/VPPtestframework.qhcp" |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 104 | @echo "To view the help file:" |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 105 | @echo "# assistant -collectionFile $(BUILD_DOC_DIR)/qthelp/VPPtestframework.qhc" |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 106 | |
| 107 | .PHONY: applehelp |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 108 | applehelp: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 109 | $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/applehelp |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 110 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 111 | @echo "Build finished. The help book is in $(BUILD_DOC_DIR)/applehelp." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 112 | @echo "N.B. You won't be able to view it unless you put it in" \ |
| 113 | "~/Library/Documentation/Help or install it in your application" \ |
| 114 | "bundle." |
| 115 | |
| 116 | .PHONY: devhelp |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 117 | devhelp: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 118 | $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/devhelp |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 119 | @echo |
| 120 | @echo "Build finished." |
| 121 | @echo "To view the help file:" |
| 122 | @echo "# mkdir -p $$HOME/.local/share/devhelp/VPPtestframework" |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 123 | @echo "# ln -s $(BUILD_DOC_DIR)/devhelp $$HOME/.local/share/devhelp/VPPtestframework" |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 124 | @echo "# devhelp" |
| 125 | |
| 126 | .PHONY: epub |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 127 | epub: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 128 | $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/epub |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 129 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 130 | @echo "Build finished. The epub file is in $(BUILD_DOC_DIR)/epub." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 131 | |
| 132 | .PHONY: epub3 |
| 133 | epub3: |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 134 | $(SPHINXBUILD) -b epub3 $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/epub3 |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 135 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 136 | @echo "Build finished. The epub3 file is in $(BUILD_DOC_DIR)/epub3." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 137 | |
| 138 | .PHONY: latex |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 139 | latex: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 140 | $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/latex |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 141 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 142 | @echo "Build finished; the LaTeX files are in $(BUILD_DOC_DIR)/latex." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 143 | @echo "Run \`make' in that directory to run these through (pdf)latex" \ |
| 144 | "(use \`make latexpdf' here to do that automatically)." |
| 145 | |
| 146 | .PHONY: latexpdf |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 147 | latexpdf: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 148 | $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/latex |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 149 | @echo "Running LaTeX files through pdflatex..." |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 150 | $(MAKE) -C $(BUILD_DOC_DIR)/latex all-pdf |
| 151 | @echo "pdflatex finished; the PDF files are in $(BUILD_DOC_DIR)/latex." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 152 | |
| 153 | .PHONY: latexpdfja |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 154 | latexpdfja: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 155 | $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/latex |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 156 | @echo "Running LaTeX files through platex and dvipdfmx..." |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 157 | $(MAKE) -C $(BUILD_DOC_DIR)/latex all-pdf-ja |
| 158 | @echo "pdflatex finished; the PDF files are in $(BUILD_DOC_DIR)/latex." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 159 | |
| 160 | .PHONY: text |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 161 | text: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 162 | $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/text |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 163 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 164 | @echo "Build finished. The text files are in $(BUILD_DOC_DIR)/text." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 165 | |
| 166 | .PHONY: man |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 167 | man: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 168 | $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/man |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 169 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 170 | @echo "Build finished. The manual pages are in $(BUILD_DOC_DIR)/man." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 171 | |
| 172 | .PHONY: texinfo |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 173 | texinfo: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 174 | $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/texinfo |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 175 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 176 | @echo "Build finished. The Texinfo files are in $(BUILD_DOC_DIR)/texinfo." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 177 | @echo "Run \`make' in that directory to run these through makeinfo" \ |
| 178 | "(use \`make info' here to do that automatically)." |
| 179 | |
| 180 | .PHONY: info |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 181 | info: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 182 | $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/texinfo |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 183 | @echo "Running Texinfo files through makeinfo..." |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 184 | make -C $(BUILD_DOC_DIR)/texinfo info |
| 185 | @echo "makeinfo finished; the Info files are in $(BUILD_DOC_DIR)/texinfo." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 186 | |
| 187 | .PHONY: gettext |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 188 | gettext: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 189 | $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILD_DOC_DIR)/locale |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 190 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 191 | @echo "Build finished. The message catalogs are in $(BUILD_DOC_DIR)/locale." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 192 | |
| 193 | .PHONY: changes |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 194 | changes: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 195 | $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/changes |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 196 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 197 | @echo "The overview file is in $(BUILD_DOC_DIR)/changes." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 198 | |
| 199 | .PHONY: linkcheck |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 200 | linkcheck: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 201 | $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/linkcheck |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 202 | @echo |
| 203 | @echo "Link check complete; look for any errors in the above output " \ |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 204 | "or in $(BUILD_DOC_DIR)/linkcheck/output.txt." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 205 | |
| 206 | .PHONY: doctest |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 207 | doctest: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 208 | $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/doctest |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 209 | @echo "Testing of doctests in the sources finished, look at the " \ |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 210 | "results in $(BUILD_DOC_DIR)/doctest/output.txt." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 211 | |
| 212 | .PHONY: coverage |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 213 | coverage: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 214 | $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/coverage |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 215 | @echo "Testing of coverage in the sources finished, look at the " \ |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 216 | "results in $(BUILD_DOC_DIR)/coverage/python.txt." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 217 | |
| 218 | .PHONY: xml |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 219 | xml: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 220 | $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/xml |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 221 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 222 | @echo "Build finished. The XML files are in $(BUILD_DOC_DIR)/xml." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 223 | |
| 224 | .PHONY: pseudoxml |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 225 | pseudoxml: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 226 | $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/pseudoxml |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 227 | @echo |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 228 | @echo "Build finished. The pseudo-XML files are in $(BUILD_DOC_DIR)/pseudoxml." |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 229 | |
| 230 | .PHONY: dummy |
Klement Sekera | 778c276 | 2016-11-08 02:00:28 +0100 | [diff] [blame] | 231 | dummy: verify-virtualenv |
Klement Sekera | 277b89c | 2016-10-28 13:20:27 +0200 | [diff] [blame] | 232 | $(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILD_DOC_DIR)/dummy |
Klement Sekera | f62ae12 | 2016-10-11 11:47:09 +0200 | [diff] [blame] | 233 | @echo |
| 234 | @echo "Build finished. Dummy builder generates no files." |