From 78f3f700ef80508399335053072c4ef53301cfa1 Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 4 Jul 2020 02:03:43 +0300 Subject: [PATCH] Fail if make -C dir fails --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 95e4346..d4b0e1b 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,8 @@ mkstage-etc: cp -r etc $(STAGE) mkstage-progs: - $(foreach dir,$(wildcard progs/*), \ - CC=$(CC) DESTDIR=$(abspath $(STAGE)) make -C $(dir) install; \ + $(foreach dir,$(wildcard progs/*), \ + CC=$(CC) DESTDIR=$(abspath $(STAGE)) make -C $(dir) install || exit 1; \ ) $(STAGE)/init: init.c