1 LATEXMK ?= latexmk-quieter latexmk --outdir=outdir --pdf --pdflatex="pdflatex -halt-on-error"
3 FIGURE_FILES := $(wildcard fig*.tex)
4 MAIN_FILES := $(filter-out $(FIGURE_FILES),$(wildcard *.tex))
5 MAIN_PDFS := $(patsubst %.tex,%.pdf,$(MAIN_FILES))
6 FIGURE_PDFS := $(patsubst %.tex,%.pdf,$(FIGURE_FILES))
15 MAYBE_BIB+= $(wildcard ../bib.bib)
16 MAYBE_BIB+= $(wildcard bib.bib)
18 $(MAIN_PDFS): $(MAYBE_BIB) $(FIGURE_PDFS)
22 @mv outdir/$*.pdf . 2>/dev/null
23 @pkill -SIGHUP mupdf 2>/dev/null || true