summaryrefslogtreecommitdiffstats
path: root/makefile
blob: cc3c890949d09a8bac63dfc85ef808012ebd54e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Builds various pages

OUTDIR  := build
SOURCES := $(wildcard ./*.tex)
PAGES   := $(patsubst %.tex, $(OUTDIR)/%.pdf, $(SOURCES))

TEX     := xelatex
TEXARGS := --output-directory $(OUTDIR) --interaction=batchmode --8bit


all: $(PAGES)

$(OUTDIR):
	mkdir $@

$(OUTDIR)/%.pdf: %.tex $(OUTDIR)
	$(TEX) $(TEXARGS) $<