summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5689d9c403edbc0ff7922b8c8186e174be59755f (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
PRE=au_BentBisballeNyeng_
all: A5 Tour3_Log

A1:
	zip ${PRE}$@.zip a1/hello.cc
	zip ${PRE}$@.zip a1/hello-cpp20.cc
	zip ${PRE}$@.zip a1/Makefile
	xelatex -halt-on-error -jobname=${PRE}$@ a1/exercise.tex
	rm -f ${PRE}$@.aux ${PRE}$@.log

A2:
	zip ${PRE}$@.zip a2/Makefile
	zip ${PRE}$@.zip a2/measurement.cc
	xelatex -halt-on-error -jobname=${PRE}$@ a2/exercise.tex
	rm -f ${PRE}$@.aux ${PRE}$@.log

A3:
	zip ${PRE}$@.zip a3/Makefile
	zip ${PRE}$@.zip a3/concurrency.cc
	zip ${PRE}$@.zip a3/console.log
	xelatex -halt-on-error -jobname=${PRE}$@ a3/exercise.tex
	xelatex -halt-on-error -jobname=${PRE}$@ a3/exercise.tex
	rm -f ${PRE}$@.aux ${PRE}$@.log

%.pdf: %.m
	octave $<

A4: a4/insert.pdf a4/insert-padded.pdf a4/remove.pdf a4/remove-padded.pdf
	zip ${PRE}$@.zip a4/Makefile
	zip ${PRE}$@.zip a4/*.cc
	zip ${PRE}$@.zip a4/*.h
	zip ${PRE}$@.zip a4/*.log
	zip ${PRE}$@.zip a4/*.m
	xelatex -halt-on-error -jobname=${PRE}$@ a4/exercise.tex
	xelatex -halt-on-error -jobname=${PRE}$@ a4/exercise.tex
	rm -f ${PRE}$@.aux ${PRE}$@.log

A5:
	zip ${PRE}$@.zip a5/Makefile
	zip ${PRE}$@.zip a5/*.cc
	zip ${PRE}$@.zip a5/*.h
	xelatex -halt-on-error -jobname=${PRE}$@ a5/exercise.tex
	xelatex -halt-on-error -jobname=${PRE}$@ a5/exercise.tex
	rm -f ${PRE}$@.aux ${PRE}$@.log

A6:
	zip ${PRE}$@.zip a6/Makefile
	zip ${PRE}$@.zip a6/*.cc
	zip ${PRE}$@.zip a6/*.h
	make -C a6 ${PRE}$@.pdf
	cp a6/${PRE}$@.pdf .

Tour3_Log:
	xelatex -halt-on-error -jobname=${PRE}$@ tour3_log/tour3_log.tex
	rm -f ${PRE}$@.aux ${PRE}$@.log

clean:
	rm -f ${PRE}*