summaryrefslogtreecommitdiff
path: root/Makefile
blob: 714a2f8c2a2426539c12da697887fd66b97686dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)