summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $@