summaryrefslogtreecommitdiff
path: root/official-2013/optimized-text/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'official-2013/optimized-text/Makefile')
-rw-r--r--official-2013/optimized-text/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/official-2013/optimized-text/Makefile b/official-2013/optimized-text/Makefile
new file mode 100644
index 0000000..bf10896
--- /dev/null
+++ b/official-2013/optimized-text/Makefile
@@ -0,0 +1,34 @@
+# SVG2PNG: Each is buggy in their own way
+# ImageMagick: doesn't support transparency
+#SVG2PNG = convert $1 -format png $(if $3,-resize $3x)$(if $4,$4) $2
+# librsvg: doesn't support <style> element
+#SVG2PNG = rsvg-convert $1 -o $2 $(if $3,-w $3) $(if $4,-h $4)
+# Inkscape: messes up gradients
+SVG2PNG = inkscape $1 --export-png $2 $(if $3,-w $3) $(if $4,-h $4)
+
+# PNG2ICO
+# png2ico: doesn't read PNG transparency properly
+#PNG2ICO = png2ico $2 $1
+# icotool: has perl dependencies
+PNG2ICO = icotool -c $1 -o $2
+
+all: \
+ archlogo.png \
+ favicon.ico \
+ logotype-color-darkbg.png \
+ logotype-color-lightbg.png \
+ logotype-grayscale.png \
+ logotype-mono-black.png \
+ logotype-mono-white.png \
+
+clean:
+ rm -f *.png *.ico
+
+%.png: %.svg Makefile
+ $(call SVG2PNG,$<,$@)
+
+%.ico: %.png Makefile
+ $(call PNG2ICO,$<,$@)
+
+favicon.png: %.png: %.svg Makefile
+ $(call SVG2PNG,$<,$@,16)