dotfiles = $(shell ls *.dot | sed 's/\.dot/\.pdf/' -) all: $(dotfiles) %.pdf: %.dot dot -Tpdf $< -o $@ clean: rm -f *.pdf