.POSIX: .SUFFIXES: .tex .pdf all: progreport/document.pdf execsumm/document.pdf progreport/document.pdf: progreport/document.tex format.tex execsumm/document.pdf: execsumm/document.tex format.tex .tex.pdf: cd $$(dirname $@) && pdftex $$(basename $<) clean: find -E . -regex ".*\.(pdf|log)" | xargs rm -f .PHONY: all clean