diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-30 15:46:03 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-30 15:46:03 +0100 |
commit | f937a1142d1761072b4cb9314e0db697f26cc544 (patch) | |
tree | 7f14fc558212a3e3049a177c89a197a4d3d5a2de /script/trees | |
parent | 88f741db92b22069f43009fc936e3ad74bbc780f (diff) |
trees run_make_command: simpler distclean handling
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/trees')
-rwxr-xr-x | script/trees | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/script/trees b/script/trees index 835cd504..dfe1eb01 100755 --- a/script/trees +++ b/script/trees @@ -248,8 +248,7 @@ run_make_command() make -C "$cdir" $mode -j$XBMK_THREADS $makeargs || $err "$cdir mk$mode" [ -z "$mkhelper" ] || [ -n "$mode" ] || $mkhelper || $err "!$mkhelper" - [ "$mode" != "clean" ] && return 0 - make -C "$cdir" distclean 2>/dev/null || : + [ "$mode" = "clean" ] && make -C "$cdir" distclean || :; return 0 } check_cmake() |