summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCamil Staps2016-09-08 09:48:24 +0200
committerCamil Staps2016-09-08 09:48:24 +0200
commit0ec5e17223a20257e7fc3e525b7596265a7a00ac (patch)
tree03a007b4be4b4bad699e1e00ff9861732ad08622 /Makefile
College 1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0928664
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+TEX=pdflatex
+TEXFLAGS=-file-line-error -halt-on-error
+
+TARGET=$(subst .tex,.pdf,$(wildcard *.tex))
+
+.PHONY: all clean
+
+all: $(TARGET)
+
+%.pdf: %.tex
+ $(TEX) $(TEXFLAGS) $< &&\
+ $(TEX) $(TEXFLAGS) $<
+
+clean:
+ latexmk -C