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 <andrew.cooper3@citrix.com>
.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
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