diff options
Diffstat (limited to 'webroot/.static/gfx/Makefile')
-rw-r--r-- | webroot/.static/gfx/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/webroot/.static/gfx/Makefile b/webroot/.static/gfx/Makefile index b6e596c..c519498 100644 --- a/webroot/.static/gfx/Makefile +++ b/webroot/.static/gfx/Makefile @@ -1,14 +1,24 @@ SVGFILES=$(wildcard *.svg) -PNGFILES=$(subst svg,png,${SVGFILES}) +PNGFILES=$(subst loading.png,loading.gif,$(subst svg,png,${SVGFILES})) -all: ${PNGFILES} +all: ${PNGFILES} favicon.ico clean: - rm -f ${PNGFILES} - + 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 $< > $@ |