mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-19 21:20:31 +02:00
mk: clean up run_make_command_real
merge check_cmake with run_make_command_real tidied up some redundant checks Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -522,8 +522,8 @@ run_make_command()
|
||||
|
||||
run_make_command_real()
|
||||
{
|
||||
$if_not_dry_build
|
||||
x_ check_cmake "$srcdir"
|
||||
[ -z "$cmakedir" ] || \
|
||||
x_ cmake -B "$srcdir" "$srcdir/$cmakedir"
|
||||
|
||||
$if_build \
|
||||
check_autoconf "$srcdir"
|
||||
@@ -533,18 +533,6 @@ run_make_command_real()
|
||||
x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
|
||||
}
|
||||
|
||||
check_cmake()
|
||||
{
|
||||
[ -z "$cmakedir" ] && \
|
||||
return 0
|
||||
|
||||
check_makefile "$1" || \
|
||||
cmake -B "$1" "$1/$cmakedir" || \
|
||||
x_ check_makefile "$1"
|
||||
|
||||
x_ check_makefile "$1"; :
|
||||
}
|
||||
|
||||
check_autoconf()
|
||||
{
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user