From 2076920f59257be3a639990050f338c913753805 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Wed, 20 Jul 2016 16:26:33 +0100 Subject: [PATCH] Fix the handling of errors in the all/build targets Currently a build error will be eaten by the shell for loop, causing the makefile not to stop. Use `set -e;` to prevent this behaviour Signed-off-by: Andrew Cooper --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1a8099d..4d8fffc 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ PREFIX ?= $(ROOT) .PHONY: all all: - @for D in $(wildcard tests/*); do \ + @set -e; for D in $(wildcard tests/*); do \ [ ! -e $$D/Makefile ] && continue; \ $(MAKE) -C $$D build; \ done @@ -14,7 +14,7 @@ all: install: @mkdir -p $(DESTDIR) install -m775 xtf-runner $(DESTDIR) - @for D in $(wildcard tests/*); do \ + @set -e; for D in $(wildcard tests/*); do \ [ ! -e $$D/Makefile ] && continue; \ $(MAKE) -C $$D install; \ done -- 2.39.5