trees run_make_command: simpler distclean handling

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2
Leah Rowe 2024-06-30 15:46:03 +01:00 committed by Leah Rowe
parent aad9c8d0de
commit ca77d3a3d7
1 changed files with 1 additions and 2 deletions

View File

@ -246,8 +246,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()