diff options
author | jaseg <git@jaseg.net> | 2020-09-16 13:08:38 +0200 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2020-09-16 13:08:38 +0200 |
commit | 5af08604d7a54441ad757f4ab9f550c54deb6ce9 (patch) | |
tree | 0e2ef87ee34d570901f1b12a0b2824fc383a9438 /quick-tech-report/Makefile | |
download | ihsm-5af08604d7a54441ad757f4ab9f550c54deb6ce9.tar.gz ihsm-5af08604d7a54441ad757f4ab9f550c54deb6ce9.tar.bz2 ihsm-5af08604d7a54441ad757f4ab9f550c54deb6ce9.zip |
Initial commit
Diffstat (limited to 'quick-tech-report/Makefile')
-rw-r--r-- | quick-tech-report/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/quick-tech-report/Makefile b/quick-tech-report/Makefile new file mode 100644 index 0000000..259f303 --- /dev/null +++ b/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 + |