diff options
author | jaseg <git@jaseg.net> | 2020-10-07 11:44:39 +0200 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2020-10-07 11:47:06 +0200 |
commit | e387d4eecadf755b6ee44a9b568d62118985c0dc (patch) | |
tree | 640ba67c8a3c1f95344589a3450546996953f1e1 /doc/quick-tech-report/Makefile | |
parent | 5de91842ed13a4709ca54e21f5a2255f094a4eb6 (diff) | |
parent | 65400d123e593f2ed77f23d1b901cdf613fc15c1 (diff) | |
download | ihsm-e387d4eecadf755b6ee44a9b568d62118985c0dc.tar.gz ihsm-e387d4eecadf755b6ee44a9b568d62118985c0dc.tar.bz2 ihsm-e387d4eecadf755b6ee44a9b568d62118985c0dc.zip |
Merge HW dev and orga repos
Diffstat (limited to 'doc/quick-tech-report/Makefile')
-rw-r--r-- | doc/quick-tech-report/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/quick-tech-report/Makefile b/doc/quick-tech-report/Makefile new file mode 100644 index 0000000..259f303 --- /dev/null +++ b/doc/quick-tech-report/Makefile @@ -0,0 +1,36 @@ + +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_tech_report + +VERSION_STRING := $(shell git describe --tags --long --dirty) + +all: ${main_tex}.pdf + +%.pdf: %.tex %.bib version.tex + pdflatex -shell-escape $< + biber $* + pdflatex -shell-escape $< + +.PHONY: preview +preview: + pdflatex -shell-escape ${main_tex}.tex + +version.tex: ${main_tex}.tex ${main_tex}.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 + |