summaryrefslogtreecommitdiff
path: root/paper/Makefile
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2021-04-09 19:02:15 +0200
committerjaseg <git-bigdata-wsl-arch@jaseg.de>2021-04-09 19:02:15 +0200
commitf6e5759be574c2f9d2c2617ad0a5552ed58ec9d6 (patch)
tree927e107c89da44f165c0546f4065746ce56da5b4 /paper/Makefile
parente87677ca40c9c2fa754a006a714e61a7ee4cc2e8 (diff)
downloadmaster-thesis-f6e5759be574c2f9d2c2617ad0a5552ed58ec9d6.tar.gz
master-thesis-f6e5759be574c2f9d2c2617ad0a5552ed58ec9d6.tar.bz2
master-thesis-f6e5759be574c2f9d2c2617ad0a5552ed58ec9d6.zip
Initialize paper tex
Diffstat (limited to 'paper/Makefile')
-rw-r--r--paper/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/paper/Makefile b/paper/Makefile
new file mode 100644
index 0000000..43a49c5
--- /dev/null
+++ b/paper/Makefile
@@ -0,0 +1,32 @@
+
+LAB_PATH ?= ../lab-windows
+
+SHELL := bash
+.ONESHELL:
+.SHELLFLAGS := -eu -o pipefail -c
+.DELETE_ON_ERROR:
+MAKEFLAGS += --warn-undefined-variables
+MAKEFLAGS += --no-builtin-rules
+
+main_tex ?= safety-reset-paper
+
+VERSION_STRING := $(shell git describe --tags --long --dirty)
+
+all: ${main_tex}.pdf
+
+%.pdf: %.tex safety-reset.bib version.tex
+ pdflatex -shell-escape $<
+ biber $*
+ pdflatex -shell-escape $<
+
+version.tex: ${main_tex}.tex safety-reset.bib
+ echo "${VERSION_STRING}" > $@
+
+resources/%.pdf: $(LAB_PATH)/%.ipynb
+ jupyter-nbconvert --to=pdf --output-dir=resources --output=$* --LatexExporter.template_file=resources/nbexport.tplx $^
+
+.PHONY: clean
+clean:
+ rm -f ${main_tex}.aux ${main_tex}.bbl ${main_tex}.bcf ${main_tex}.log ${main_tex}.blg
+ rm -f ${main_tex}.out ${main_tex}.run.xml texput.log
+