build: abort recursive make on downstream error

This commit is contained in:
Philippe Gerum 2019-02-15 15:20:16 +01:00
parent a7f66a5a3c
commit 45bc1c1481
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ include config.mk
TARGETS := include lib tests utils commands
$(MAIN_GOALS):
@for target in $(TARGETS); do \
$(MAKE) -C $$target O=$(O_DIR)/$$target V=$(V) $@; \
@for target in $(TARGETS); do \
$(MAKE) -C $$target O=$(O_DIR)/$$target V=$(V) $@ || exit 1; \
done
lib: include