HTMLS := $(shell find . -type f | grep -E "\.haml$$" | cut -c 3- | rev | cut -c 6- | rev | sed -e "s/$$/.html/" | tee templates.txt) htmls: $(HTMLS) @echo -ne %.html: %.haml . ../virtual_env/bin/activate; hamlpy $< $@ %.haml: @touch $@