changeset 2685:f92d97c14b76

Catch build errors Small node for #563, the case in doc/Makefile.am is no issue. It is a complete different syntax. This fix #563.
author Klaus Ethgen <Klaus@Ethgen.de>
date Sat, 30 Dec 2017 13:40:21 +0100
parents 0449fe107800
children 11b11d8531fe
files src/Makefile.am src/icons/Makefile.am
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/Makefile.am	Thu Dec 28 20:11:46 2017 +0100
+++ b/src/Makefile.am	Sat Dec 30 13:40:21 2017 +0100
@@ -60,11 +60,11 @@
 	icon_tabcomp		$(srcdir)/ui_tabcomp.png
 
 ui_icons.h: $(extra_ICONS) Makefile.in
-	@(set -e; echo '/* Auto generated file, do not edit */'; echo; \
+	@sh -ec "echo '/* Auto generated file, do not edit */'; echo; \
 	 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 $@ !!!"
 
 ClayRGB1998_icc.h: ClayRGB1998.icc
 	echo "/*" > $@
--- a/src/icons/Makefile.am	Thu Dec 28 20:11:46 2017 +0100
+++ b/src/icons/Makefile.am	Sat Dec 30 13:40:21 2017 +0100
@@ -42,11 +42,11 @@
 	icon_view		$(srcdir)/icon_view.png
 
 icons_inline.h: $(ICONS_INLINE) Makefile.in
-	@(echo '/* Auto generated file, do not edit */'; echo; \
+	@sh -ec "echo '/* Auto generated file, do not edit */'; echo; \
 	 echo '#ifndef ICONS_INLINE_H'; \
 	 echo '#define ICONS_INLINE_H'; echo; \
 	 $(GDK_PIXBUF_CSOURCE) --raw --extern --build-list $(ICONS_INLINE_PAIRS); \
-	 echo '#endif /* ICONS_INLINE_H */') > $@ || echo "!!! Failed to generate $@ !!!"
+	 echo '#endif /* ICONS_INLINE_H */'" > $@ || echo "!!! Failed to generate $@ !!!"
 
 noinst_DATA = icons_inline.h
 CLEANFILES = $(noinst_DATA)