15 lines
502 B
Makefile
15 lines
502 B
Makefile
src = $(wildcard *.tex)
|
|
pdf = $(src:.tex=.pdf)
|
|
|
|
.PHONY: all clean
|
|
|
|
all: $(pdf)
|
|
|
|
%.pdf: %.tex $(wildcard src/*.tex) $(wildcard *.bib)
|
|
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 *.loe *.tdo *.bbl-SAVE-ERROR)
|
|
rm -f $(wildcard sections/*.aux)
|
|
rm -rf $(wildcard _minted-main sections/.auctex-auto _region_.prv)
|