Trap build errors
authorAndreas Rönnquist <andreas@ronnquist.net>
Fri, 12 Jan 2018 14:24:36 +0000 (15:24 +0100)
committerAndreas Rönnquist <andreas@ronnquist.net>
Fri, 12 Jan 2018 14:24:36 +0000 (15:24 +0100)
Without this fix the make would fail on missing symbols, and this instead
makes it fail already when gdk_pixbuf_csource is faulty.

src/Makefile.am

index e61382b..cc0e7ea 100644 (file)
@@ -64,7 +64,7 @@ ui_icons.h: $(extra_ICONS) Makefile.in
         echo '#ifndef UI_ICONS_H'; \
         echo '#define UI_ICONS_H'; echo; \
         $(GDK_PIXBUF_CSOURCE) --raw --extern --build-list $(ICON_PAIRS); \
-        echo '#endif /* UI_ICONS_H */'" > $@ || echo "!!! Failed to generate $@ !!!"
+        echo '#endif /* UI_ICONS_H */'" > $@ || { echo "!!! Failed to generate $@ !!!"; exit 1; }
 
 ClayRGB1998_icc.h: ClayRGB1998.icc
        echo "/*" > $@