mlpccg.appcache: $(call appcache>contents,mlpccg.appcache)
sed -i '' "s/^# Last-Updated: .*$$/# Last-Updated: `date -u +'%Y-%m-%dT%H:%M:%SZ'`/" $@
-INKSCAPE := $(firstword $(shell command -v inkscape /Applications/Inkscape.app/Contents/Resources/bin/inkscape) inkscape)
+CONVERT.svg.png ?= rsvg-convert -f png
+CONVERT.png.ico ?= convert
FAVICON_SIZES = 32 57 64 72 76 114 120 144 152 196 256
FAVICONS = $(patsubst %,favicon_%.png,$(FAVICON_SIZES)) favicon.ico
favicon_%.png: favicon.svg
- $(INKSCAPE) -z -e $@ -w $* -h $* $<
+ $(CONVERT.svg.png) -w $* -h $* < $< > $@
%.ico: %_48.png %_32.png %_24.png %_64.png %_16.png
- convert $^ $@
+ $(CONVERT.png.ico) $^ $@
all: $(FAVICONS) mlpccg.appcache