2023-12-05 11:34:05 +01:00
|
|
|
src = $(wildcard *.tex)
|
|
|
|
pdf = $(src:.tex=.pdf)
|
|
|
|
imgpdf = $(wildcard img/*.pdf)
|
|
|
|
|
2024-02-09 13:31:06 +01:00
|
|
|
.PHONY: all clean
|
2023-12-05 11:34:05 +01:00
|
|
|
|
2024-03-09 10:46:41 +01:00
|
|
|
all: \((pdf) \)(imgpdf)
|
2023-12-05 11:34:05 +01:00
|
|
|
|
2024-03-09 10:46:41 +01:00
|
|
|
%.pdf: %.tex \((wildcard src/*.tex) \)(wildcard *.bib) $(imgpdf)
|
2024-02-09 13:31:06 +01:00
|
|
|
latexmk -pdf -xelatex -shell-escape -file-line-error -synctex=1 -halt-on-error -shell-escape $<
|
2023-12-05 11:34:05 +01:00
|
|
|
|
|
|
|
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)
|
|
|
|
|