From 7285bccd71dfacc775a718991be4dd989bec2ea8 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Tue, 26 Aug 2014 18:16:55 +0200 Subject: [PATCH] Ditch Inkscape. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c6323f5..1dee560 100644 --- a/Makefile +++ b/Makefile @@ -5,16 +5,17 @@ appcache>contents = $(shell grep -vFx -e "*" -e "CACHE MANIFEST" -e "CACHE:" -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) +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 -- 2.30.2