From 56e7a906e5dba2c6cba724828c5a538df0672226 Mon Sep 17 00:00:00 2001 From: liuhaitao Date: Tue, 26 May 2020 11:37:15 +0800 Subject: [PATCH] build: exit normaly once catch 'make depend' and 'make context' failure case To be strict in check build, once any 'make depend' or 'make context' fails, exit normally. Signed-off-by: liuhaitao --- tools/Makefile.unix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/Makefile.unix b/tools/Makefile.unix index ca2d1b570d3..8a31b90005a 100644 --- a/tools/Makefile.unix +++ b/tools/Makefile.unix @@ -332,7 +332,7 @@ dirlinks: include/arch include/arch/board include/arch/chip $(ARCH_SRC)/board $( context: include/nuttx/config.h include/nuttx/version.h include/math.h include/float.h include/stdarg.h include/setjmp.h dirlinks $(Q) mkdir -p staging $(Q) for dir in $(CONTEXTDIRS) ; do \ - $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" context; \ + $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" context || exit; \ done # clean_context @@ -437,12 +437,12 @@ download: $(BIN) pass1dep: context tools/mkdeps$(HOSTEXEEXT) tools/cnvwindeps$(HOSTEXEEXT) $(Q) for dir in $(USERDEPDIRS) ; do \ - $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" depend ; \ + $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" depend || exit; \ done pass2dep: context tools/mkdeps$(HOSTEXEEXT) tools/cnvwindeps$(HOSTEXEEXT) $(Q) for dir in $(KERNDEPDIRS) ; do \ - $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" EXTRAFLAGS="$(KDEFINE) $(EXTRAFLAGS)" depend; \ + $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" EXTRAFLAGS="$(KDEFINE) $(EXTRAFLAGS)" depend || exit; \ done # Configuration targets