Makefile 952 B

12345678910111213141516171819202122232425262728
  1. build/guenashk.html: txt/dogs.md build/template.html
  2. mkdir -p build
  3. pandoc --toc --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 build/icon-object.svg build/icon-stat.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. --object-icon=build/icon-object.svg \
  14. --stat-icon=build/icon-stat.svg \
  15. >build/payload.json
  16. build/template.html: txt/template.mustache build/payload.json
  17. pystache txt/template.mustache build/payload.json >build/template.html
  18. .PHONY: clean deploy
  19. clean:
  20. rm -f build/*
  21. deploy: build/guenashk.html
  22. scp build/guenashk.html rosencrantz:/srv/http/gdr/www/.