summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-15 20:24:08 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-15 20:24:08 +0100
commit6725b616f328f44faa8c2a386875b54fc8144093 (patch)
treefa547186217c7290fccc42929862030b53a3f723
parent7507655d3410b5b7589a027e15b9712ed901e629 (diff)
mk: skip build if makefile check fails
this was the previous behaviour, and prevents single-tree builds from proceeding with use of copy_elf otherwise you get a bunch of build errors Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk b/mk
index ed2c666a..966b52e1 100755
--- a/mk
+++ b/mk
@@ -554,8 +554,9 @@ run_make_command()
$if_build \
check_autoconf "$srcdir"
- check_makefile "$srcdir" && \
- x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
+ check_makefile "$srcdir" || return 1
+
+ x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
) || err "run_make_file" "$@"