all: mlpccg.appcache appcache>contents = $(shell grep -vFx -e "*" -e "CACHE MANIFEST" -e "CACHE:" -e "NETWORK:" -e "FALLBACK:" $(1) | grep -v -e "^\#" ) 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) 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 $* $< %.ico: %_48.png %_32.png %_24.png %_64.png %_16.png convert $^ $@ all: $(FAVICONS) mlpccg.appcache clean: $(RM) $(FAVICONS)