aboutsummaryrefslogtreecommitdiff
path: root/slides/2018-ct-intro/makefile
blob: b42d0ec259b8a76baae6e607d09491692dcbe629 (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
.PHONY: clean tidy open

MAIN = main

TEX_SRC = src/$(wildcard:.tex) 
TEX_IMG = \
	img/$(wildcard:.jpg) \
	img/$(wildcard:.tex) \
	img/$(wildcard:.pdf) \
	img/$(wildcard:.png)
TEX = \
    $(TEX_SRC) $(TEX_IMG) $(MAIN).tex

$(MAIN).pdf: $(TEX)
	pdflatex  $(MAIN)
	@pdflatex $(MAIN)

open: $(MAIN).pdf 
	okular $(MAIN).pdf &

tidy:
	rm -rf *.nav *.out *.log *.aux *.toc *.snm

clean:
	rm -rf *.nav *.out *.log *.aux *.toc *.snm $(MAIN).pdf