aboutsummaryrefslogtreecommitdiffstats
path: root/webroot/.static/gfx/Makefile
blob: c51949884cae949cfc2f9f952a7c47fb2fefaa98 (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
SVGFILES=$(wildcard *.svg)
PNGFILES=$(subst loading.png,loading.gif,$(subst svg,png,${SVGFILES}))

all: ${PNGFILES} favicon.ico

clean:
	rm -f ${PNGFILES} favicon.ico

lxray-large.png: %.png: %.svg
	inkscape -b white -e $@ -w 300 $<

loading.gif: loading.svg
	for f in 1 2 3 4 5 6 7 8; do \
	inkscape -b white -e $@-frame$$f.png -C -j -i frame$$f $<; \
	convert $@-frame$$f.png $@-frame$$f.gif; \
	done
	gifsicle --delay=15 --loop $@-frame?.gif > $@
	rm -f $@-frame?.png $@-frame?.gif

%.png: %.svg
	inkscape -e $@ -w 16 -h 16 $<

%.ico: %.png
	icotool -c $< > $@