-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
32 lines (25 loc) · 892 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Makefile for Sphinx documentation
#
# Languages that can be built.
LANGS = en
# Dependencies to perform before running other builds.
# Clone the en/Makefile everywhere.
SPHINX_DEPENDENCIES = $(foreach lang, $(LANGS), $(lang)/Makefile)
#
# The various formats the documentation can be created in.
#
# Loop over the possible languages and call other build targets.
#
html: $(foreach lang, $(LANGS), html-$(lang))
epub: $(foreach lang, $(LANGS), epub-$(lang))
latex: $(foreach lang, $(PDF_LANGS), latex-$(lang))
pdf: $(foreach lang, $(PDF_LANGS), pdf-$(lang))
# Make the HTML version of the documentation with correctly nested language folders.
html-%: $(SPHINX_DEPENDENCIES)
cd $* && make html LANG=$*
epub-%: $(SPHINX_DEPENDENCIES)
cd $* && make epub LANG=$*
latex-%: $(SPHINX_DEPENDENCIES)
cd $* && make latex LANG=$*
pdf-%: $(SPHINX_DEPENDENCIES)
cd $* && make latexpdf LANG=$*