build/guenashk.html: txt/dogs.md build/template.html
mkdir -p build
pandoc --toc --template=build/template build/guenashk.html
build/icon-%.svg: diagrams/icon-%.svg
inkscape --export-plain-svg=$@ $<
sed -i -e 's/height=[^>]*/height="1em"/g' $@
sed -i -e 's/width=[^>]*/width="1em"/g' $@
build/payload.json: build/icon-heart.svg build/icon-relationship.svg build/icon-object.svg build/icon-stat.svg
bin/b64-payload \
--raleway=/usr/share/fonts/TTF/Raleway-Medium.ttf \
--trait-icon=build/icon-heart.svg \
--relationship-icon=build/icon-relationship.svg \
--object-icon=build/icon-object.svg \
--stat-icon=build/icon-stat.svg \
>build/payload.json
build/template.html: txt/template.mustache build/payload.json
pystache txt/template.mustache build/payload.json >build/template.html
.PHONY: clean deploy
clean:
rm -f build/*
deploy: build/guenashk.html
scp build/guenashk.html rosencrantz:/srv/http/gdr/www/.