transbeam/resources/Makefile

23 lines
606 B
Makefile

density := 600
icons := transbeam.svg favicon.ico transbeam-192.png transbeam-512.png transbeam-apple.png
icons: $(icons)
%.svg: %.asy transbeam-common.asy
asy -f svg $<
transbeam-apple.png: transbeam.svg
convert -density $(density) -background white $< -resize 192x192 -extent 192x192 $@
transbeam-%.png: transbeam-%.svg
convert -density $(density) -background transparent $< -resize $*x$* -extent $*x$* $@
favicon.ico: transbeam-16.png transbeam-32.png transbeam-48.png transbeam-64.png
convert -background transparent $^ $@
install: icons
cp $(icons) ../static/
clean:
rm *.svg *.png *.ico