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