diff options
author | Richard Hughes <richard@hughsie.com> | 2023-03-28 15:11:01 +0100 |
---|---|---|
committer | Nigel Croxon <ncroxon@redhat.com> | 2023-04-04 09:28:42 -0400 |
commit | 7c89273dbe78f438037684216723b3ed8f6558b6 (patch) | |
tree | 9865eba58d5b3de2174318b1f35c800c80c841e5 /Makefile | |
parent | 98ef7f9f5fc3735f6c07310b4d519eb7afb49159 (diff) | |
download | gnu-efi-7c89273dbe78f438037684216723b3ed8f6558b6.tar.gz |
make: Fix shell exit status handling
Right now whenever we have shell commands with loops, errors in the
middle are accidentally ignored, and make continues to process commands.
This adds 'set -e' to all of those, so they'll propagate back up.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -83,14 +83,14 @@ $(SUBDIRS): clean: rm -f *~ - @for d in $(SUBDIRS); do \ + @set -e ; for d in $(SUBDIRS); do \ if [ -d $(OBJDIR)/$$d ]; then \ $(MAKE) -C $(OBJDIR)/$$d -f $(SRCDIR)/$$d/Makefile SRCDIR=$(SRCDIR)/$$d clean; \ fi; \ done install: - @for d in $(SUBDIRS); do \ + @set -e ; for d in $(SUBDIRS); do \ mkdir -p $(OBJDIR)/$$d; \ $(MAKE) -C $(OBJDIR)/$$d -f $(SRCDIR)/$$d/Makefile SRCDIR=$(SRCDIR)/$$d install; done |