bsc-leon-vatthauer/thesis/Makefile

21 lines
497 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)
.PHONY: all clean install
all: $(pdf) $(imgpdf)
%.pdf: %.tex $(wildcard src/*.tex) $(wildcard *.bib) $(imgpdf)
2024-01-08 18:04:14 +01:00
latexmk -file-line-error -synctex=1 -halt-on-error -shell-escape -pdf $<
2023-12-05 11:34:05 +01:00
fast:
# enforce tex execution
pdflatex -synctex=1 $(src)
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)