trees run_make_command: simpler distclean handling

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

View File

@ -248,8 +248,7 @@ run_make_command()
make -C "$cdir" $mode -j$XBMK_THREADS $makeargs || $err "$cdir mk$mode" make -C "$cdir" $mode -j$XBMK_THREADS $makeargs || $err "$cdir mk$mode"
[ -z "$mkhelper" ] || [ -n "$mode" ] || $mkhelper || $err "!$mkhelper" [ -z "$mkhelper" ] || [ -n "$mode" ] || $mkhelper || $err "!$mkhelper"
[ "$mode" != "clean" ] && return 0 [ "$mode" = "clean" ] && make -C "$cdir" distclean || :; return 0
make -C "$cdir" distclean 2>/dev/null || :
} }
check_cmake() check_cmake()