summaryrefslogtreecommitdiff
path: root/doc/paper/Makefile
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2021-03-15 11:25:49 +0100
committerjaseg <git-bigdata-wsl-arch@jaseg.de>2021-03-15 11:25:49 +0100
commit69daf158fe83e49d420e97fc5bbf91f32798585a (patch)
tree3f3b3dd04e6327eacdf8d088831c80e6492e5c8b /doc/paper/Makefile
parent2fe4df744e89bfa43de62340a66375c5c9cadc13 (diff)
downloadihsm-69daf158fe83e49d420e97fc5bbf91f32798585a.tar.gz
ihsm-69daf158fe83e49d420e97fc5bbf91f32798585a.tar.bz2
ihsm-69daf158fe83e49d420e97fc5bbf91f32798585a.zip
Repo re-org: rename paper dir
Diffstat (limited to 'doc/paper/Makefile')
-rw-r--r--doc/paper/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/paper/Makefile b/doc/paper/Makefile
new file mode 100644
index 0000000..8a4bc75
--- /dev/null
+++ b/doc/paper/Makefile
@@ -0,0 +1,35 @@
+
+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 ?= rotohsm_paper
+brief_tex ?= rotohsm_tech_report
+
+VERSION_STRING := $(shell git describe --tags --long --dirty)
+
+all: ${main_tex}.pdf ${brief_tex}.pdf
+
+%.pdf: %.tex rotohsm.bib version.tex
+ pdflatex -shell-escape $<
+ biber $*
+ pdflatex -shell-escape $<
+
+version.tex: ${main_tex}.tex ${brief_tex}.tex rotohsm.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
+ rm -f ${brief_tex}.aux ${brief_tex}.bbl ${brief_tex}.bcf ${brief_tex}.log ${brief_tex}.blg
+ rm -f ${brief_tex}.out ${brief_tex}.run.xml texput.log
+