mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
tree.sh: simplify check_autoconf()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-4
@@ -285,8 +285,8 @@ run_make_command()
|
||||
{
|
||||
[ -n "$mode" ] || x_ $premake
|
||||
|
||||
$dry check_cmake "$srcdir" && [ -z "$mode" ] && \
|
||||
$dry check_autoconf "$srcdir"
|
||||
$dry check_cmake "$srcdir"
|
||||
[ -n "$mode" ] || ( $dry check_autoconf "$srcdir" ) || err
|
||||
$dry check_makefile "$srcdir" || return 1
|
||||
|
||||
$dry x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
|
||||
@@ -307,12 +307,10 @@ check_cmake()
|
||||
|
||||
check_autoconf()
|
||||
{
|
||||
(
|
||||
x_ cd "$1"
|
||||
[ -f "bootstrap" ] && x_ ./bootstrap $bootstrapargs
|
||||
[ -f "autogen.sh" ] && x_ ./autogen.sh $autogenargs
|
||||
[ -f "configure" ] && x_ ./configure $autoconfargs; :
|
||||
) || err "can't bootstrap project: $1"; :
|
||||
}
|
||||
|
||||
check_makefile()
|
||||
|
||||
Reference in New Issue
Block a user