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 $(