TARGET=$(subst .tex,.pdf,$(wildcard *.tex)) elevator.pdf all: $(TARGET) %.pdf : %.tex sv.sty pdflatex $< pdflatex $< clean: latexmk -c .PHONY: clean