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

DOCNAME := the_crown_bar
SOURCES := $(DOCNAME).tex tex/docstyle.sty

# include tex/Makefile.inc

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

clean:
	@rm -rfv build

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