Debian Codegraph @

doc/src/Makefile

raw
1 # You can set these variables from the command line, and also
2 # from the environment for the first two.
3 SPHINXOPTS ?= -W --keep-going
4 SPHINXBUILD ?= python3 -m sphinx.cmd.build
5 SPHINXINTL ?= python3 -m sphinx_intl.commands
6 SOURCEDIR = .
7 BUILDDIR = _build
8 LANGUAGE = en
9
10 # Put it first so that "make" without argument is like "make help".
11 help:
12 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13
14 gettext:
15 @$(SPHINXBUILD) -b gettext "$(SOURCEDIR)" -d "$(BUILDDIR)/i18n/doctrees" ../i18n/gettext man/* $(SPHINXOPTS) $(O)
16
17 html:
18 @$(SPHINXBUILD) -b html "$(SOURCEDIR)" -d "$(BUILDDIR)/doctrees" ../html $(SPHINXOPTS) $(O)
19
20 man:
21 @$(SPHINXBUILD) -b man "$(SOURCEDIR)" -d "$(BUILDDIR)/doctrees" ../man/$(LANGUAGE) $(SPHINXOPTS) $(O)
22
23 locale: gettext
24 @$(SPHINXINTL) update -p ../i18n/gettext -l de
25
26 .PHONY: help gettext html locale man Makefile
27
28 # Catch-all target: route all unknown targets to Sphinx using the new
29 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
30 %: Makefile
31 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)