aboutsummaryrefslogtreecommitdiff
path: root/pdf/Makefile
blob: 8df3d66f42b42f7da5b935391270decdb89e60b4 (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
TEX = $(FILES:%=%.tex)
PDF = $(FILES:%=%.pdf)

# Debug flags
ifdef DEBUG
LATEXMK_FLAGS += -verbose
else
LATEXMK_FLAGS += -quiet
endif

all pdf: $(PDF)

%.pdf: %.tex
	latexmk $(LATEXMK_FLAGS) -pdf -f $<

mostlyclean:
	latexmk $(LATEXMK_FLAGS) -c

clean:
	latexmk $(LATEXMK_FLAGS) -C

.PHONY: all pdf mostlyclean clean