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>
This commit is contained in:
Leah Rowe
2026-09-15 18:06:52 +01:00
parent 04be963383
commit 4878cec84d
+2 -2
View File
@@ -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 || \