From 4878cec84d3dc48f03f92156c9d09240829e51a9 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 15 Sep 2026 18:06:52 +0100 Subject: [PATCH] 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 --- mk | 4 ++-- 1 file 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 || \