X-Git-Url: https://git.yukkurigames.com/?p=heroik.git;a=blobdiff_plain;f=Makefile;h=30266b310b321dd4a2f93137359005d54766a05a;hp=736c55e79992f9f70a7b5116e0049ee8b1426e70;hb=73ba41c3716a5c304cfd75982ee2f92785ce1d4e;hpb=f0ceb77ec0706a7efac4bee757be88899d0e925f;ds=inline diff --git a/Makefile b/Makefile index 736c55e..30266b3 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,14 @@ appcache>contents = $(shell grep -vFx -e "*" -e "CACHE MANIFEST" -e "CACHE:" -e %.appcache: %.appcache.in $$(call appcache>contents,$$*.appcache.in) sed "s/$$/Last-Updated: `date -u +'%Y-%m-%dT%H:%M:%SZ'`/" $< > $@ -all: heroik.appcache +CONVERT.svg.png ?= rsvg-convert -f png -clean: - $(RM) heroik.appcache +favicon_%.png: favicon.svg + $(CONVERT.svg.png) -w $(*F) -h $(*F) < $< > $@ + +ICONS := $(patsubst %,favicon_%.png,256 192 128 32) +all: heroik.appcache $(ICONS) + +clean: + $(RM) heroik.appcache $(ICONS)