build/guenashk.html: txt/dogs.md build/template.html
mkdir -p build
pandoc --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
bin/b64-payload \
--raleway=/usr/share/fonts/TTF/Raleway-Medium.ttf \
--trait-icon=build/icon-heart.svg \
--relationship-icon=build/icon-relationship.svg \
>build/payload.json
build/template.html: txt/template.mustache build/payload.json
pystache txt/template.mustache build/payload.json >build/template.html
clean:
rm -f build/*