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