+images.h: $(DISOBEDIENCE_IMAGES)
+ set -e; \
+ exec > @$.new; \
+ for png in $^; do \
+ name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \
+ gdk-pixbuf-csource --raw --name=image_$$name $$png; \
+ done; \
+ echo "static const struct image images[] = {"; \
+ for png in `echo $^`; do \
+ name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \
+ echo " { \"$$name.png\", image_$$name },"; \
+ done|sort; \
+ echo "};"
+ mv @$.new $@
+endif