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) pdf = $(src:.tex=.pdf)
imgpdf = $(wildcard img/*.pdf) imgpdf = $(wildcard img/*.pdf)
.PHONY: all clean install .PHONY: all clean
all: $(pdf) $(imgpdf) all: $(pdf) $(imgpdf)
%.pdf: %.tex $(wildcard src/*.tex) $(wildcard *.bib) $(imgpdf) %.pdf: %.tex $(wildcard src/*.tex) $(wildcard *.bib) $(imgpdf)
latexmk -file-line-error -synctex=1 -halt-on-error -shell-escape -pdf $< latexmk -pdf -xelatex -shell-escape -file-line-error -synctex=1 -halt-on-error -shell-escape $<
fast:
# enforce tex execution
pdflatex -synctex=1 $(src)
clean: clean:
latexmk -C $(src) latexmk -C $(src)