chiark / gitweb /
Tidy up makefile
authorRichard Kettlewell <rjk@greenend.org.uk>
Mon, 9 Jun 2008 06:44:30 +0000 (07:44 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Mon, 9 Jun 2008 06:44:30 +0000 (07:44 +0100)
disobedience/Makefile.am

index 8c49273..5b0c03a 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 "};"