chiark / gitweb /
Sensitize icons according to current user rights. There's up to 10s
[disorder] / disobedience / Makefile.am
index 0b1433b1124fa43d5c2eee3ebae1b50fb3c0953f..5b0c03acab79b697cd6786b233542e2e83b37aac 100644 (file)
@@ -47,14 +47,15 @@ disobedience.html: ../doc/disobedience.1 $(top_srcdir)/scripts/htmlman
 misc.o: images.h
 
 images.h: $(PNGS)
+       set -e;                                                         \
        exec > @$.new;                                                  \
        for png in $(PNGS); do                                          \
-         name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`;                   \
+         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 $(PNGS); do                                          \
-         name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`;                   \
+         name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`;           \
          echo "  { \"$$name.png\", image_$$name },";                   \
        done;                                                           \
        echo "};"
@@ -65,4 +66,6 @@ check-help: all
        unset DISPLAY;./disobedience --version > /dev/null
        unset DISPLAY;./disobedience --help > /dev/null
 
+CLEANFILES=disobedience.html images.h
+
 export GNUSED