blob: d8db2e067a1b0e2532c4ee7727af224f678619fe [file] [log] [blame]
Gilles Peskine49451762019-02-12 14:25:40 +01001PANDOC = pandoc
2
3default: all
4
5all_markdown = \
Gilles Peskine0b020022019-02-12 14:25:57 +01006 mbed-crypto-storage-specification.md \
Gilles Peskine1ff67cc2019-09-09 18:25:13 +02007 testing/driver-interface-test-strategy.md \
Gilles Peskineab4b9b42019-09-09 18:23:10 +02008 testing/invasive-testing.md \
Gilles Peskine508caf52019-09-16 16:29:15 +02009 testing/test-framework.md \
Gilles Peskine49451762019-02-12 14:25:40 +010010 # This line is intentionally left blank
11
12html: $(all_markdown:.md=.html)
13pdf: $(all_markdown:.md=.pdf)
14all: html pdf
15
16.SUFFIXES:
17.SUFFIXES: .md .html .pdf
18
19.md.html:
20 $(PANDOC) -o $@ $<
21.md.pdf:
22 $(PANDOC) -o $@ $<
Gilles Peskine4b3db732019-09-09 18:26:20 +020023
24clean:
25 rm -f *.html *.pdf
Gilles Peskineab4b9b42019-09-09 18:23:10 +020026 rm -f testing/*.html testing/*.pdf