X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fimages%2FMakefile;fp=htdocs%2Fimages%2FMakefile;h=91221e67611b4cd31e1db0e29d7f5401b80272e6;hb=6855525e48fad5de270500a5445c4f4ff85d8bda;hp=0000000000000000000000000000000000000000;hpb=e69709aa8ee6108a1197e46b45367ba8dab55a52;p=diogenes.git diff --git a/htdocs/images/Makefile b/htdocs/images/Makefile new file mode 100644 index 0000000..91221e6 --- /dev/null +++ b/htdocs/images/Makefile @@ -0,0 +1,23 @@ +icondef = gartoon.defs +conv = sodipodi + +include .deps + +all: $(ICONS) + +.deps: Makefile $(icondef) + echo "boot: all" > .deps + echo >> .deps + rawicons=`cat $(icondef) | cut -f1`; \ + allicons=""; \ + for icon in $$rawicons; do \ + allicons="$$allicons $$icon.png"; \ + isrc=`cat $(icondef) | grep ^$$icon | cut -f2`; \ + echo "$$icon.png: $$isrc" >> .deps; \ + echo " $(conv) -z --file=$$isrc --export-png=$$icon.png --export-width=24 --export-height=24" >> .deps; \ + echo >> .deps; \ + done; \ + echo "ICONS=$$allicons" >> .deps; \ + +.PHONY: all deps +