From 20f8174a712a7770802d268bd2d75bd9a79e0303 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 27 Apr 2013 10:35:12 -0400 Subject: official-2013/optimized-text/Makefile: run PNGs through pngcrush --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bf10896..b857464 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,10 @@ SVG2PNG = inkscape $1 --export-png $2 $(if $3,-w $3) $(if $4,-h $4) # icotool: has perl dependencies PNG2ICO = icotool -c $1 -o $2 +# pngcrush is available from [pcr] +#PNGCRUSH = cp $1 $2 +PNGCRUSH = pngcrush $1 $2 + all: \ archlogo.png \ favicon.ico \ @@ -24,9 +28,12 @@ all: \ clean: rm -f *.png *.ico -%.png: %.svg Makefile +%.raw.png: %.svg Makefile $(call SVG2PNG,$<,$@) +%.png: %.raw.png Makefile + $(call PNGCRUSH,$<,$@) + %.ico: %.png Makefile $(call PNG2ICO,$<,$@) -- cgit v1.2.3