aboutsummaryrefslogtreecommitdiff
path: root/part1/report/makefile
diff options
context:
space:
mode:
authorVasil Zlatanov <vasko@e4-pattern-vm.europe-west4-a.c.electric-orbit-223819.internal>2018-12-05 16:36:15 +0000
committerVasil Zlatanov <vasko@e4-pattern-vm.europe-west4-a.c.electric-orbit-223819.internal>2018-12-05 16:36:15 +0000
commite42170b70bb9710d73ff22fcd06ae8724a78cbd1 (patch)
tree3edc5777e62537b1c79140d89b648b3829564b68 /part1/report/makefile
parentbcd380b631184e9d4e58c0aa80afb17727581066 (diff)
downloadvz215_np1915-e42170b70bb9710d73ff22fcd06ae8724a78cbd1.tar.gz
vz215_np1915-e42170b70bb9710d73ff22fcd06ae8724a78cbd1.tar.bz2
vz215_np1915-e42170b70bb9710d73ff22fcd06ae8724a78cbd1.zip
Move part1 parts to seperate folder
Diffstat (limited to 'part1/report/makefile')
-rwxr-xr-xpart1/report/makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/part1/report/makefile b/part1/report/makefile
new file mode 100755
index 0000000..4af6952
--- /dev/null
+++ b/part1/report/makefile
@@ -0,0 +1,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/*
+