.SUFFIXES: .uml .svg .dot .pik .md .html .subplot
.subplot.html:
subplot docgen --date "Version: $$(git describe --long --dirty)" $< -o $@
.dot.svg:
dot -Tsvg $< > $@.tmp
mv $@.tmp $@
.uml.svg:
plantuml -tsvg --output=. $<
.pik.svg:
pikchr-cli $< > $@.tmp
mv $@.tmp $@
all: architecture.html userguide.html overview.html filter-impl.html adapter-impl.html
architecture.html: architecture.subplot architecture.md Makefile messages.md
messages.md: messages.sh messages.txt
./messages.sh > messages.md
userguide.html: userguide.subplot userguide.md Makefile
subplot docgen $< --output $@
overview.html: overview.md Makefile
pandoc --standalone --metadata title="Radicle CI overview" "$<" --output "$@"
filter-impl.html: filter-impl.md Makefile
pandoc --standalone --metadata title="Radicle CI event filter implementation" "$<" --output "$@"
adapter-impl.html: adapter-impl.md Makefile
pandoc --standalone --metadata title="Radicle CI adapter implementation" "$<" --output "$@"