summaryrefslogtreecommitdiff
path: root/Makefile
blob: cb17956fc34784d15d13d9b9c0c15832b1094ba3 (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
PRE=au_BentBisballeNyeng_
all: A4 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

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

clean:
	rm -f ${PRE}*