blob: 50b900a12a1e20a2306c9a313f397ab44e5ecb8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
LOC = it
CC = pdflatex
SRC != find * -name '*.tex'
gtk4-book-${LOC}.pdf: main-${LOC}.tex ${SRC}
${CC} main-${LOC}.tex
# For some pacakge/tool we need to execute the command twice
${CC} main-${LOC}.tex
@mv main-${LOC}.pdf $@
main-${LOC}.tex: main.tex
@cp $> $@
@sed -i "" 's/LOC\//${LOC}\//' $@
clean:
@rm -f *.log *.aux *.pdf
@rm -f main-*.tex
english:
@make LOC=en
|