X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/52b88d2428a808d0636a1cb8205a1f891fc23e6a..adafcbcfff1902b6df9bbab9fd76d8cf68f0c62c:/disobedience/Makefile.am diff --git a/disobedience/Makefile.am b/disobedience/Makefile.am index 0b1433b..5b0c03a 100644 --- a/disobedience/Makefile.am +++ b/disobedience/Makefile.am @@ -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