summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6346d18d8d6f1d84a1f9f82922f524abf871485a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
TEX := xelatex
TEXARGS := --output-directory=build --halt-on-error

DOCNAME := WrStat
SOURCES := $(DOCNAME).tex

include tex/Makefile.inc

.PHONY: clean
all: build/$(DOCNAME).pdf

clean:
	@rm -rfv build

build/$(DOCNAME).pdf : $(SOURCES)
	mkdir -p build
	$(TEX) $(TEXARGS) $<
	$(TEX) $(TEXARGS) $<