aboutsummaryrefslogtreecommitdiff
path: root/pdf/Makefile
blob: 1472f07ea354ac6169a0e6b756e31b8d76e5b84b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FILES = doc
PDF = $(FILES:%=%.pdf)

# Debug flags
ifndef DEBUG
LATEXMK_FLAGS += -quiet
endif

all pdf: $(PDF)

.SECONDEXPANSION:
%.pdf: %.tex $$(wildcard $$*.bib)  assets/*.tex
	latexmk $(LATEXMK_FLAGS) -pdf -f $<

mostlyclean:
	latexmk $(LATEXMK_FLAGS) -c
	rm -f $(FILES:%=%.synctex.*) $(FILES:%=%.bbl)
	rm -f assets/*.aux

clean: mostlyclean
	rm -f $(PDF)

.PHONY: all pdf mostlyclean clean