summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-15 18:06:52 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-15 18:06:52 +0100
commit4878cec84d3dc48f03f92156c9d09240829e51a9 (patch)
tree0b111cf6230e50767a022d2ffcff964a39ede848
parent04be963383d26851e20a0eaf75cfd2e2c9fb3bed (diff)
mk: optimise make-clean check
only check makefiles if if_not_make_clean is set this avoids unnecessary disk usage Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk b/mk
index 16304538..40612370 100755
--- a/mk
+++ b/mk
@@ -567,10 +567,10 @@ run_make_command()
$if_build \
x_ $mkhelper
- check_makefile "$srcdir" || \
+ $if_not_make_clean \
return 0
- $if_not_make_clean \
+ check_makefile "$srcdir" || \
return 0
make -C "$srcdir" $cleanargs distclean || \