From: Mathieu Desnoyers Date: Fri, 15 Nov 2013 18:48:28 +0000 (-0500) Subject: doc/examples: error out when a subdir make fails X-Git-Tag: v2.4.0-rc1~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8975e8f71f628a447a88c9faf675887c8193a554;p=lttng-ust.git doc/examples: error out when a subdir make fails Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 3769283a..553be33c 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -45,12 +45,12 @@ all-local: done; \ fi for subdir in $(SUBDIRS_PROXY); do \ - cd $$subdir && $(MAKE) AM_CPPFLAGS="$(CPPFLAGS) -I../../../include/" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../liblttng-ust/.libs/ -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../../tools/" $(AM_MAKEFLAGS) all; cd ..; \ + (cd $$subdir && $(MAKE) AM_CPPFLAGS="$(CPPFLAGS) -I../../../include/" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../liblttng-ust/.libs/ -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../../tools/" $(AM_MAKEFLAGS) all && cd ..) || exit 1; \ done clean-local: for subdir in $(SUBDIRS_PROXY); do \ - cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean; cd ..; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \ done @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ for subdir in $(SUBDIRS_PROXY); do \