phd-thesis/chapter-qkd/Makefile
2024-08-27 13:06:41 +02:00

33 lines
614 B
Makefile

SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
VERSION_STRING := $(shell git describe --tags --long --dirty)
all: chapter.pdf
%.pdf: %.tex ../main.bib version.tex
pdflatex -shell-escape $<
biber $*
pdflatex -shell-escape $<
.PHONY: preview
preview:
pdflatex -shell-escape chapter.tex
version.tex: chapter.tex
echo "${VERSION_STRING}" > $@
.PHONY: update-figures
update-figures:
make -C figures
.PHONY: clean
clean:
rm -f **.aux **.bbl **.bcf **.log **.blg
rm -f **.out **.run.xml **/texput.log