summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-27 10:30:35 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-08-13 20:40:35 -0600
commit6ecd6223286b8d5f0a55b26d43d4c30d0d113457 (patch)
tree2b618d7182f2201b8ea2a3fda1168064ad096a0d /Makefile
parent90f2163dc1000e1098ba2c79008dd6f7bf236c7b (diff)
add the new official logo
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 20 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 426800d..bf10896 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,20 @@
# SVG2PNG: Each is buggy in their own way
# ImageMagick: doesn't support transparency
-#SVG2PNG = convert $1 -format png $2
+#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
-# Inkscape: doesn't do text hinting (feature?), messes up gradients
-SVG2PNG = inkscape $1 --export-png $2
+#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 \
@@ -14,7 +22,13 @@ all: \
logotype-mono-white.png \
clean:
- rm -f *.png
+ rm -f *.png *.ico
-%.png: %.svg
+%.png: %.svg Makefile
$(call SVG2PNG,$<,$@)
+
+%.ico: %.png Makefile
+ $(call PNG2ICO,$<,$@)
+
+favicon.png: %.png: %.svg Makefile
+ $(call SVG2PNG,$<,$@,16)