gdritter repos dogs / master Makefile
master

Tree @master (Download .tar.gz)

Makefile @master

b768dcb
 
 
 
 
 
 
 
 
f7bc22d
b768dcb
 
 
 
f7bc22d
 
b768dcb
 
 
 
 
 
 
build/guenashk.html: txt/dogs.md build/template.html
	mkdir -p build
	pandoc --template=build/template <txt/dogs.md >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

clean:
	rm -f build/*