sources = $(wildcard *.md) htmls = $(sources:.md=.html) pdfs = $(sources:.md=.pdf) .SUFFIXES: .md .html .pdf .md.html: subplot docgen --output $@ $< .md.pdf: subplot docgen --output $@ $< all: $(htmls) $(pdfs) rethinking-email.pdf rethinking-email.html: rethinking-email.md email.bib