From 39d3c78fcd6d9f37e2c6122340538017a52b8a7e Mon Sep 17 00:00:00 2001 From: Leon Vatthauer Date: Fri, 9 Feb 2024 13:34:50 +0100 Subject: [PATCH] add makefile --- slides/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 slides/Makefile diff --git a/slides/Makefile b/slides/Makefile new file mode 100644 index 0000000..4433340 --- /dev/null +++ b/slides/Makefile @@ -0,0 +1,17 @@ +src = $(wildcard *.tex) +pdf = $(src:.tex=.pdf) +imgpdf = $(wildcard img/*.pdf) + +.PHONY: all clean + +all: $(pdf) $(imgpdf) + +%.pdf: %.tex $(wildcard src/*.tex) $(wildcard *.bib) $(imgpdf) + latexmk -pdf -xelatex -shell-escape -file-line-error -synctex=1 -halt-on-error -shell-escape $< + +clean: + latexmk -C $(src) + rm -f $(wildcard *.out *.nls *.nlo *.bbl *.blg *-blx.bib *.run.xml *.bcf *.synctex.gz *.fdb_latexmk *.fls *.toc) + rm -f $(wildcard src/*.aux) + +