forked from cakephp/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 1.02 KB
/
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
33
34
35
36
37
38
39
40
# MakeFile for building all the docs at once.
# Inspired by the Makefile used by bazaar.
# http://bazaar.launchpad.net/~bzr-pqm/bzr/2.3/
PYTHON = python
.PHONY: all clean html latexpdf epub htmlhelp
# Dependencies to perform before running other builds.
SPHINX_DEPENDENCIES = \
es/Makefile \
pt/Makefile
# Copy-paste the english Makefile everwhere its needed.
%/Makefile : en/Makefile
$(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
# Make the HTML version of the documentation with correctly nested language folders.
html: $(SPHINX_DEPENDENCIES)
cd en && make html LANG=en
cd es && make html LANG=es
cd pt && make html LANG=pt
htmlhelp: $(SPHINX_DEPENDENCIES)
cd en && make htmlhelp LANG=en
cd es && make htmlhelp LANG=es
cd pt && make htmlhelp LANG=pt
epub: $(SPHINX_DEPENDENCIES)
cd en && make epub LANG=en
cd es && make epub LANG=es
cd pt && make epub LANG=pt
latexpdf: $(SPHINX_DEPENDENCIES)
cd en && make latexpdf LANG=en
cd es && make latexpdf LANG=es
cd pt && make latexpdf LANG=pt
clean:
rm -rf build/*