fix makefile

This commit is contained in:
Leon Vatthauer 2024-02-09 13:31:06 +01:00
parent 205480d314
commit 4ec17acaba
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8

View file

@ -2,16 +2,12 @@ src = $(wildcard *.tex)
pdf = $(src:.tex=.pdf)
imgpdf = $(wildcard img/*.pdf)
.PHONY: all clean install
.PHONY: all clean
all: $(pdf) $(imgpdf)
%.pdf: %.tex $(wildcard src/*.tex) $(wildcard *.bib) $(imgpdf)
latexmk -file-line-error -synctex=1 -halt-on-error -shell-escape -pdf $<
fast:
# enforce tex execution
pdflatex -synctex=1 $(src)
latexmk -pdf -xelatex -shell-escape -file-line-error -synctex=1 -halt-on-error -shell-escape $<
clean:
latexmk -C $(src)