2008-03-03 08:22:58 +01:00
|
|
|
/BITMAP/ {
|
|
|
|
gsub(/\"bitmaps\//, "", $3)
|
|
|
|
gsub(/\"/, "", $3)
|
|
|
|
image[$1] = $3
|
|
|
|
}
|
|
|
|
|
|
|
|
END {
|
|
|
|
printf(" \
|
2008-03-11 06:41:14 +01:00
|
|
|
all: bmp2xpm wxicon_xpm.xpm \n \
|
|
|
|
.PHONY: all bmp2xpm \n \
|
|
|
|
CONVERT ?= convert \n \
|
2008-03-03 08:22:58 +01:00
|
|
|
")
|
|
|
|
|
|
|
|
printf("wxicon_xpm.xpm: icon.ico\n $(CONVERT) 'icon.ico[2]' wxicon_xpm.xpm\n");
|
|
|
|
|
|
|
|
for (v in image) {
|
|
|
|
printf("%s_xpm.xpm: %s\n", v, image[v])
|
|
|
|
printf(" $(CONVERT) -transparent \"#c0c0c0\" %s %s_xpm.xpm\n\n", image[v], v)
|
|
|
|
}
|
|
|
|
|
|
|
|
printf("bmp2xpm:")
|
|
|
|
for (v in image)
|
|
|
|
printf(" %s_xpm.xpm", v)
|
|
|
|
}
|