ai1/tex/Makefile

18 lines
591 B
Makefile
Raw Permalink Normal View History

2024-12-25 13:35:57 +01:00
src = $(wildcard *.tex)
pdf = $(src:.tex=.pdf)
.PHONY: all clean push
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)
push: main.pdf
scp main.pdf leonv@vatthauer.xyz:/var/www/zusammenfassungen/ai1.pdf