diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-15 20:20:03 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-15 20:20:03 +0100 |
| commit | 7507655d3410b5b7589a027e15b9712ed901e629 (patch) | |
| tree | 1a3488174ae974f84b648de6329e5223e38b3f26 | |
| parent | 2aad50cd59678366bb0bbc36afae3f07f94ade6b (diff) | |
simplified make-clean handling
no point using distclean, because the context there
is providing clean sources for distribution, but we
use ./mk release which tars everything up before ever
running any build commands.
make-clean is enough
distclean is a stupid gnuism anyway, and most makefiles
that have it will just do the same as clean anyway
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rwxr-xr-x | mk | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -117,7 +117,7 @@ main() -b) : ;; -u) mode="oldconfig" ;; -m) mode="menuconfig" ;; - -c) mode="distclean" ;; + -c) mode="clean" ;; -x) mode="crossgcc-clean" ;; -f|-F) # download source code for a project # macros. colon means false. @@ -208,9 +208,6 @@ single_tree_build() $if_not_dry_build elfcheck || \ return 0 - $if_make_clean \ - eval mode="clean" - run_make_command || \ return 0 @@ -262,7 +259,6 @@ handle_defconfig() err "$configdir: 'tree' not set" "handle_defconfig" "$@" srcdir="src/$project/$tree" - [ ! -d "$srcdir" ] && \ $if_not_make_clean \ return 0 @@ -281,11 +277,7 @@ handle_defconfig() continue; : for _xarch in $xarch; do - $if_not_build \ - break - $if_dry_build \ - break - [ -n "$_xarch" ] && \ + [ -n "$_xarch" ] && $if_not_build $if_dry_build \ check_cross_compiler "$_xarch"; : done; : |
