aboutsummaryrefslogtreecommitdiff
path: root/report/makefile
blob: 4af69523052998d4ae4776dde15b9287a74e66b8 (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
FILES = paper.md \
		metadata.yaml

OUTPUT = build

FLAGS = --bibliography=bibliography.bib \
		--csl=bibliography.csl \
		-s \
		-f markdown

FLAGS_PDF = --template=template.latex

all: pdf code

code:
	echo '\small\pagenumbering{gobble}' > build/code.aux
	echo '~~~~ {.python .numberLinese}' >> build/code.aux
	cat ../train.py >> build/code.aux
	echo -n '~~~~' >> build/code.aux
	pandoc -V geometry:margin=5em \
	  -o build/code.pdf build/code.aux
	pdfjoin build/paper.pdf build/code.pdf -o build/cw1_vz215_np1915.pdf
pdf:
	pandoc -o $(OUTPUT)/paper.pdf $(FLAGS) $(FLAGS_PDF) $(FILES)

clean:
	rm build/*