summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCamil Staps2016-09-08 09:54:24 +0200
committerCamil Staps2016-09-08 09:54:24 +0200
commit4e7c67d491aca631a57275f653f424616f03aec0 (patch)
treeb1d4f714139c0725a1e24ee71cf882f777f2edb2 /Makefile
parentCollege 1 (diff)
Makefile: added blackboard target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0928664..714a2f8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,14 +2,21 @@ TEX=pdflatex
TEXFLAGS=-file-line-error -halt-on-error
TARGET=$(subst .tex,.pdf,$(wildcard *.tex))
+BB=$(subst college-,Staps_opdracht,$(TARGET))
.PHONY: all clean
all: $(TARGET)
+blackboard: $(BB)
+
+Staps_opdracht%.pdf: college-%.pdf
+ cp $< $@
+
%.pdf: %.tex
$(TEX) $(TEXFLAGS) $< &&\
$(TEX) $(TEXFLAGS) $<
clean:
latexmk -C
+ $(RM) $(BB)