summaryrefslogtreecommitdiff
path: root/Makefile
blob: fed5240a29a19a692733921f515a2b203c8df295 (plain)
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
LOC  = it
CC   = pdflatex
SRC != find * -name '*.tex'

# I need theese to clean up the project
AUX_FILES != find * -name '*.aux'
LOG_FILES != find * -name '*.log'
PDF_FILES != find * -name '*.log'

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 main-*.tex ${LOG_FILES} ${AUX_FILES} ${PDF_FILES}

all:
	@make
	@make LOC=en

english:
	@make LOC=en