blob: 1c314640b9cc96cbb2919b0a38f336472338e115 [file] [log] [blame]
Gilles Peskineabeb58e2020-07-13 13:22:27 +02001PANDOC = pandoc
2
3default: all
4
5all_markdown = \
Gilles Peskineb51f96a2020-08-31 14:03:05 +02006 psa-conditional-inclusion-c.md \
Gilles Peskine278e5eb2020-07-13 11:28:20 +02007 psa-driver-developer-guide.md \
8 psa-driver-integration-guide.md \
Gilles Peskine2e66aca2020-07-13 11:27:13 +02009 psa-driver-interface.md \
Gilles Peskineabeb58e2020-07-13 13:22:27 +020010 # 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 $@ $<
23
24clean:
25 rm -f *.html *.pdf