more plugin fixups
[diogenes.git] / htdocs / images / Makefile
1 icondef = gartoon.defs
2 conv = sodipodi
3
4 include .deps
5
6 all: $(ICONS)
7
8 .deps: Makefile $(icondef)
9 echo "boot: all" > .deps
10 echo >> .deps
11 rawicons=`cat $(icondef) | cut -f1`; \
12 allicons=""; \
13 for icon in $$rawicons; do \
14 allicons="$$allicons $$icon.png"; \
15 isrc=`cat $(icondef) | grep ^$$icon | cut -f2`; \
16 echo "$$icon.png: $$isrc" >> .deps; \
17 echo " $(conv) -z --file=$$isrc --export-png=$$icon.png --export-width=24 --export-height=24" >> .deps; \
18 echo >> .deps; \
19 done; \
20 echo "ICONS=$$allicons" >> .deps; \
21
22 .PHONY: all deps
23