summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-06-14 11:40:53 +0300
committerLars Wirzenius <liw@liw.fi>2019-06-14 11:40:53 +0300
commitc73bd5fd7fc7da163b1228afac6f2735cc4da49d (patch)
tree40abb3fbdaff294edd20030392368b8fad833658
parent7aa8a15ea9471325996636367f4b20a11d980e24 (diff)
downloadfable-poc-c73bd5fd7fc7da163b1228afac6f2735cc4da49d.tar.gz
Change: format HTML also via ftt-docgen0.2
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 254b955..bb4c885 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
docs = echo.md tutorial.md fable-arch.md jt.md
outputs = $(docs:.md=.pdf) $(docs:.md=.html)
-.SUFFIXES: .md .pdf .html
+.SUFFIXES: .md .pdf .html .tmp
all: $(outputs)
@@ -9,10 +9,11 @@ publish:
install -d files
install -m 0644 $(outputs) files
-.md.pdf:
- ./ftt-docgen $$(basename $< .md).yaml $< > tmp.md
- ./pandoc.sh tmp.md -o $@
- rm -f tmp.md
+.md.tmp:
+ ./ftt-docgen $$(basename $< .md).yaml $< > $@
-.md.html:
+.tmp.pdf:
+ ./pandoc.sh $< -o $@
+
+.tmp.html:
./pandoc.sh $< -o $@