diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-15 18:06:52 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-15 18:06:52 +0100 |
| commit | 4878cec84d3dc48f03f92156c9d09240829e51a9 (patch) | |
| tree | 0b111cf6230e50767a022d2ffcff964a39ede848 | |
| parent | 04be963383d26851e20a0eaf75cfd2e2c9fb3bed (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-x | mk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 || \ |
