1PANDOC = pandoc
2
3default: all
4
5all_markdown = $(wildcard *.md */*.md)
6
7html: $(all_markdown:.md=.html)
8pdf: $(all_markdown:.md=.pdf)
9all: html pdf
10
11.SUFFIXES:
12.SUFFIXES: .md .html .pdf
13
14.md.html:
15	$(PANDOC) -o $@ $<
16.md.pdf:
17	$(PANDOC) -o $@ $<
18
19clean:
20	rm -f *.html *.pdf
21	rm -f testing/*.html testing/*.pdf
22