aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2018-11-20 15:38:00 +0000
committerVasil Zlatanov <v@skozl.com>2018-11-20 15:38:00 +0000
commit31336ec2533729f5b00fc98a5db5d0418203aeed (patch)
tree4da115c382eb3462d5047489959ee93d61d23c5d
parent933b375859125bdb1609c5e86afc248d70203ada (diff)
downloadvz215_np1915-31336ec2533729f5b00fc98a5db5d0418203aeed.tar.gz
vz215_np1915-31336ec2533729f5b00fc98a5db5d0418203aeed.tar.bz2
vz215_np1915-31336ec2533729f5b00fc98a5db5d0418203aeed.zip
Add code to makefile
-rw-r--r--report/makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/report/makefile b/report/makefile
index 6359a42..03a10e1 100644
--- a/report/makefile
+++ b/report/makefile
@@ -10,8 +10,16 @@ FLAGS = --bibliography=bibliography.bib \
FLAGS_PDF = --template=template.latex
-all: pdf
+all: pdf code
+code:
+ echo '\small' > build/code.aux
+ echo '~~~~ {.python .numberLinese}' >> build/code.aux
+ cat ../train.py >> build/code.aux
+ echo -n '~~~~' >> build/code.aux
+ pandoc -V geometry:margin=3em \
+ -o build/code.pdf build/code.aux
+ pdfjoin build/paper.pdf build/code.pdf -o build/paper+code.pdf
pdf:
pandoc -o $(OUTPUT)/paper.pdf $(FLAGS) $(FLAGS_PDF) $(FILES)