mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
tree.sh: simplified srcdir check on make-clean
this is the check that ksips a given target if the tree directory does not exist, on the clean command. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-3
@@ -112,9 +112,8 @@ handle_defconfig()
|
|||||||
chkvars tree
|
chkvars tree
|
||||||
srcdir="src/$project/$tree"
|
srcdir="src/$project/$tree"
|
||||||
|
|
||||||
if [ "$mode" = "distclean" ] || [ "$mode" = "crossgcc-clean" ]; then
|
[ "$mode" = "${mode%clean}" ] && [ ! -d "$srcdir" ] && return 0
|
||||||
[ -d "$srcdir" ] || return 0
|
|
||||||
fi
|
|
||||||
[ -z "$mode" ] && for _xarch in $xarch; do
|
[ -z "$mode" ] && for _xarch in $xarch; do
|
||||||
$dry check_cross_compiler "$_xarch"
|
$dry check_cross_compiler "$_xarch"
|
||||||
done; :
|
done; :
|
||||||
|
|||||||
Reference in New Issue
Block a user