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