summaryrefslogtreecommitdiff
path: root/optimized-text/Makefile
blob: bf10896d34f24a998e939c6604ce96fdb32cb470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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)