summaryrefslogtreecommitdiff
path: root/Makefile
blob: 254b9554e34fcc1c556c4c8da21781a99d8aee9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
docs = echo.md tutorial.md fable-arch.md jt.md
outputs = $(docs:.md=.pdf) $(docs:.md=.html)

.SUFFIXES: .md .pdf .html

all: $(outputs)

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.html:
	./pandoc.sh $< -o $@