SRCS := $(shell find src -name '*.md') HTML := $(SRCS:src/%.md=%.html) vpath %.md src vpath %.html www html: $(HTML) %.html: %.md pandoc -f markdown+autolink_bare_uris -t html5 \ --standalone \ -o www/$@ $<