docs = echo.md tutorial.md fable-arch.md outputs = $(docs:.md=.pdf) $(docs:.md=.html) .SUFFIXES: .md .pdf .html all: $(outputs) publish: install -d files install -m 0644 $(outputs) files .md.pdf: ./pandoc.sh $< -o $@ .md.html: ./pandoc.sh $< -o $@