aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCamil Staps2016-01-24 19:14:56 +0100
committerCamil Staps2016-01-24 19:14:56 +0100
commit4464f10722b655c57285756e39b2db91a7b68cee (patch)
treec2da78a724fe0422a060a2d10a6f5203d9067c19 /Makefile
parentodt files in gitignore (summaries from classmate) (diff)
Start samenvatting; Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..317e594
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+TARGET=$(subst .tex,.pdf,$(wildcard *.tex))
+
+all: $(TARGET)
+
+%.dep: %.tex
+ perl -lnwe 'print "$*.pdf: $$1" if /\\input{([\w-]+\.tex)}/' <$< >$@
+
+include $(TARGET:.pdf=.dep)
+
+samenvatting.pdf : samenvatting.tex
+ xelatex $<
+ xelatex $<
+
+genesis.pdf : genesis.tex
+ xelatex $<
+ xelatex $<
+
+%.pdf : %.tex
+ latexmk -pdf $<
+
+clean:
+ latexmk -c
+ rm -f *.dep
+
+.PHONY: clean
+