summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-06-14 11:00:00 +0300
committerLars Wirzenius <liw@liw.fi>2019-06-14 11:00:00 +0300
commit7aa8a15ea9471325996636367f4b20a11d980e24 (patch)
tree6f40cca8363f58932c3ea024d2113ea62b694980 /Makefile
parenta2d6cae82590246e7f77b9bb94d91ee658de5cc5 (diff)
downloadfable-poc-7aa8a15ea9471325996636367f4b20a11d980e24.tar.gz
Change: format fables with ftt-docgen
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3bf6fb7..254b955 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-docs = echo.md tutorial.md fable-arch.md
+docs = echo.md tutorial.md fable-arch.md jt.md
outputs = $(docs:.md=.pdf) $(docs:.md=.html)
.SUFFIXES: .md .pdf .html
@@ -10,7 +10,9 @@ publish:
install -m 0644 $(outputs) files
.md.pdf:
- ./pandoc.sh $< -o $@
+ ./ftt-docgen $$(basename $< .md).yaml $< > tmp.md
+ ./pandoc.sh tmp.md -o $@
+ rm -f tmp.md
.md.html:
./pandoc.sh $< -o $@