-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (22 loc) · 668 Bytes
/
Makefile
File metadata and controls
36 lines (22 loc) · 668 Bytes
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
33
34
35
36
# Make file for building all the docs
# Inspired by Makefile used by Phraseanet-Docs
# https://github.com/alchemy-fr/Phraseanet-Docs
#
PYTHON = python
.PHONY: all clean html
# Languages that can be built.
LANGS = en zh-cn
# Dependencies to perform before running other builds
SPHINX_DEPENDENCIES = $(foreach lang, $(LANGS), $(lang)/Makefile)
# Clone the en/Makefile everywhere
%/Makefile: en/Makefile
cp $< $@
#
# Loop over the possible languages and call other build targets
#
html: $(foreach lang, $(LANGS), html-$(lang))
# make with correctly nested language folders
html-%: $(SPHINX_DEPENDENCIES)
cd $* && make html LANG=$*
clean:
rm -rf _build/*