1 2 3 4 5 6 7
pdfs := $(subst .md,.pdf,$(wildcard *.md)) default: $(pdfs) %.pdf: %.md pandoc -V geometry:margin=1cm $< -o $@ .PHONY: clean clean: rm -rf $(pdfs)