bsc-leon-vatthauer/thesis/Makefile

17 lines
547 B
Makefile
Raw Normal View History

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
all: \((pdf) \)(imgpdf)
2023-12-05 11:34:05 +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 *.loe *.tdo *.bbl-SAVE-ERROR)
2023-12-05 11:34:05 +01:00
rm -f $(wildcard src/*.aux)
rm -rf $(wildcard _minted-main src/.auctex-auto _region_.prv)