summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-27 10:35:12 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-04-27 10:35:12 -0400
commit746746c52fc927b182b09e4a71e8e7504c3427f8 (patch)
tree536a7d0e54fcea66970dc1bf344aa536ecec6f41
parent93955baea1dafd74afe946065307d7bbf71ea200 (diff)
official-2013/optimized-text/Makefile: run PNGs through pngcrush
-rw-r--r--optimized-text/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/optimized-text/Makefile b/optimized-text/Makefile
index bf10896..b857464 100644
--- a/optimized-text/Makefile
+++ b/optimized-text/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,$<,$@)