summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-12-22 15:10:00 +0100
committerNao Pross <naopross@thearcway.org>2019-12-22 15:10:00 +0100
commit25ad1fc0fe3c468c86cf4fc492b82b0bd5d021e1 (patch)
tree2452324f53ce6c053621cc500e8602444cdb53a2 /makefile
downloadPh1Mech-25ad1fc0fe3c468c86cf4fc492b82b0bd5d021e1.tar.gz
Ph1Mech-25ad1fc0fe3c468c86cf4fc492b82b0bd5d021e1.zip
First commit
Diffstat (limited to 'makefile')
-rw-r--r--makefile17
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) $<