ALL := $(patsubst %.haml,%.html,$(shell find . -name '*.haml')) ALL += $(patsubst %.tex,%.pdf,$(shell find . -name '*.tex')) %.html:%.haml haml $^ $@ %.pdf:%.tex texi2pdf $^ -o $@ all: $(ALL)