Makefile 718 B

123456789101112131415161718192021
  1. build/guenashk.html: txt/dogs.md build/template.html
  2. mkdir -p build
  3. pandoc --template=build/template <txt/dogs.md >build/guenashk.html
  4. build/icon-%.svg: diagrams/icon-%.svg
  5. inkscape --export-plain-svg=$@ $<
  6. sed -i -e 's/height=[^>]*/height="1em"/g' $@
  7. sed -i -e 's/width=[^>]*/width="1em"/g' $@
  8. build/payload.json: build/icon-heart.svg build/icon-relationship.svg
  9. bin/b64-payload \
  10. --raleway=/usr/share/fonts/TTF/Raleway-Medium.ttf \
  11. --trait-icon=build/icon-heart.svg \
  12. --relationship-icon=build/icon-relationship.svg \
  13. >build/payload.json
  14. build/template.html: txt/template.mustache build/payload.json
  15. pystache txt/template.mustache build/payload.json >build/template.html
  16. clean:
  17. rm -f build/*