examples: Make make return an error if one of the examples fails compile
authorDaniel Willmann <d.willmann@samsung.com>
Thu, 11 Jul 2013 08:51:32 +0000 (09:51 +0100)
committerDaniel Willmann <d.willmann@samsung.com>
Thu, 11 Jul 2013 08:55:02 +0000 (09:55 +0100)
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
src/Makefile.am

index b534255..f4f49a8 100644 (file)
@@ -88,7 +88,7 @@ DIST_SUBDIRS += $(EXAMPLES_SUBDIRS)
 examples: all-am
        @for d in $(EXAMPLES_SUBDIRS); do \
           echo "Making examples in $$d"; \
-          $(MAKE) $(AM_MAKEFLAGS) -C $$d examples; \
+          $(MAKE) $(AM_MAKEFLAGS) -C $$d examples || exit 1; \
        done
 
 install-examples: