-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
50 lines (43 loc) · 1.21 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
41
42
43
44
45
46
47
48
49
50
all: en-ebook en-print clean
clean:
rm -rf .lysa
mksandbox:
mkdir -p .lysa
en: mksandbox
cp -rvf en/lysa.ltx \
en/appendices/* \
en/chapters/* \
en/code/* \
en/graphs/* \
en/bibliographies/* \
en/images/* \
en/tex/latex-solarized/* \
.lysa/
cd .lysa && \
latexmk -pdf lysa.ltx && \
cp lysa.pdf ../lysa-en.pdf
@echo "SUCCESSFULLY BUILT lysa-en.pdf"
en-ebook: mksandbox
cp -rvf en-memoir/* \
.lysa/
cd .lysa && \
cp lysa.tex ly.tex && \
cat include/ebook.tex > lysa.tex && \
cat ly.tex >> lysa.tex && \
./version > version.tex && \
latexmk -xelatex -pdf lysa.tex && \
cp lysa.pdf ../lysa-en-ebook.pdf
@echo "SUCCESSFULLY BUILT lysa-en-ebook.pdf"
en-print: mksandbox
cp -rvf en-memoir/* \
.lysa/
cd .lysa && \
cp lysa.tex ly.tex && \
cat include/print.tex > lysa.tex && \
cat ly.tex >> lysa.tex && \
./version > version.tex && \
latexmk -xelatex -pdf lysa.tex && \
cp lysa.pdf ../lysa-en-print.pdf
@echo "SUCCESSFULLY BUILT lysa-en-print.pdf"
# I don't know how to build the russian version, so I'll leave that to
# the Russians.