blob: 5f809e9a62fa05958edca26a48f70f074152659c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
FILES = doc
PDF = $(FILES:%=%.pdf)
export max_print_line = 100000
PDFLATEX_FLAGS = -shell-escape -file-line-error -interaction=nonstopmode -halt-on-error
all pdf: $(PDF)
.SECONDEXPANSION:
%.pdf: %.tex $$(wildcard $$*.bib) assets/*.tex
latexmk $(LATEXMK_FLAGS) $(PDFLATEX_FLAGS) -pdf -f $< \
| grep --color=always -oE '(.+:[0-9]+:|warning|(Und|Ov)erfull).*' || true
mostlyclean:
latexmk $(LATEXMK_FLAGS) -c
rm -f $(FILES:%=%.synctex.*) $(FILES:%=%.brf) $(FILES:%=%.bbl) assets/*.aux
clean: mostlyclean
rm -f $(PDF)
.PHONY: all pdf mostlyclean clean
|