1 2 3 4 5 6 7
TARGET=$(subst .tex,.pdf,$(wildcard */*.tex)) all: $(TARGET) %.pdf : %.tex pdflatex -shell-escape $< && pdflatex -shell-escape $<