diff options
Diffstat (limited to '')
-rw-r--r-- | makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..cc3c890 --- /dev/null +++ b/makefile @@ -0,0 +1,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) $< |