summaryrefslogtreecommitdiffstats
path: root/makefile
blob: 1b3b57d345e5c846d4fbd8d57f65707c32d24c71 (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=nonstopmode --8bit


all: $(PAGES)

$(OUTDIR):
	mkdir $@

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