+SOURCES=$(wildcard *.tex) tea/rating.tex
+OUTPUTS=$(SOURCES:.tex=.pdf)
+
+all : $(OUTPUTS)
+
+clean :
+ rm $(OUTPUTS) *.aux *.log tea/*.aux tea/*.log
+
+%.pdf : %.tex
+ cd $(@D) && pdflatex -halt-on-error $(<F) && pdflatex -halt-on-error $(<F)
+
+install : $(OUTPUTS)
+ mkdir -p artifacts/
+ cp $(filter-out tea/rating.pdf,$^) artifacts/
+ cp tea/rating.pdf artifacts/tea-rating.pdf
+
+# Delete PDF's when they fail to compile
+# See https://www.gnu.org/software/make/manual/html_node/Errors.html#Errors
+.DELETE_ON_ERROR: