From 25ad1fc0fe3c468c86cf4fc492b82b0bd5d021e1 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 22 Dec 2019 15:10:00 +0100 Subject: First commit --- makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 makefile (limited to 'makefile') 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) $< -- cgit v1.2.1