forked from SoPra-Team-10/CppCmakeIntro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (38 loc) · 804 Bytes
/
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
RUBBER=rubber
DOT=dot
VIEWER=xdg-open
SCREEN=screen
PRESENTER=pdfpc
all: part1.pdf part2.pdf part3.pdf
part1.pdf: build.pdf part1.tex
$(RUBBER) --unsafe -d part1.tex
part2.pdf: part2.tex
$(RUBBER) --unsafe -d part2.tex
part3.pdf: part3.tex
$(RUBBER) --unsafe -d part3.tex
build.pdf: build.dot
$(DOT) -T pdf -o build.pdf build.dot
show1: part1.pdf
$(SCREEN) -dm $(VIEWER) part1.pdf 2> /dev/null
show2: part2.pdf
$(SCREEN) -dm $(VIEWER) part2.pdf 2> /dev/null
show3: part3.pdf
$(SCREEN) -dm $(VIEWER) part3.pdf 2> /dev/null
clean:
rm -f *.toc
rm -f *.aux
rm -f *.log
rm -f *.out
rm -f *.bbl
rm -f *.blg
rm -f *-blx.bib
rm -f *.fdb_latexmk
rm -f *.xml
rm -f *.bcf
rm -f build.png
rm -rf _minted-main
rm -f *.snm
rm -f *.nav
clean_all: clean
rm -f *.pdf
rm -f *.pdfpc