Create infrastructure for architecture documents in Markdown

This commit is contained in:
Gilles Peskine
2019-09-24 19:21:19 +02:00
parent 67ffdafde6
commit d46b0869f4
2 changed files with 20 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
*.html
*.pdf
+18
View File
@@ -0,0 +1,18 @@
PANDOC = pandoc
default: all
all_markdown = \
# This line is intentionally left blank
html: $(all_markdown:.md=.html)
pdf: $(all_markdown:.md=.pdf)
all: html pdf
.SUFFIXES:
.SUFFIXES: .md .html .pdf
.md.html:
$(PANDOC) -o $@ $<
.md.pdf:
$(PANDOC) -o $@ $<