master-thesis/ma/Makefile
2020-04-02 15:11:17 +02:00

26 lines
669 B
Makefile

LAB_PATH ?= ../lab-windows
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
all: safety_reset.pdf
safety_reset.pdf: resources/grid_freq_estimation.pdf
%.pdf: %.tex %.bib
pdflatex -shell-escape $<
biber $*
pdflatex -shell-escape $<
resources/%.pdf: $(LAB_PATH)/%.ipynb
jupyter-nbconvert --to=pdf --output-dir=resources --output=$* --LatexExporter.template_file=resources/nbexport.tplx $^
.PHONY: clean
clean:
rm -f safety_reset.aux safety_reset.bbl safety_reset.bcf safety_reset.log safety_reset.blg
rm -f safety_reset.out safety_reset.run.xml texput.log