mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-20 05:30:25 +02:00
even more tidy up run_make_command
tidy it all the way up Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -553,33 +553,30 @@ run_make_command()
|
|||||||
$if_build \
|
$if_build \
|
||||||
x_ $premake
|
x_ $premake
|
||||||
|
|
||||||
$if_not_dry_build check_cmake "$srcdir" && \
|
(
|
||||||
$if_build \
|
$if_dry_build \
|
||||||
$if_not_dry_build \
|
exit 0
|
||||||
check_autoconf "$srcdir"
|
|
||||||
|
|
||||||
$if_not_dry_build check_makefile "$srcdir" || \
|
x_ check_cmake "$srcdir"
|
||||||
return 1
|
|
||||||
|
|
||||||
$if_not_dry_build \
|
|
||||||
x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
|
|
||||||
|
|
||||||
$if_build \
|
$if_build \
|
||||||
x_ $mkhelper
|
check_autoconf "$srcdir"
|
||||||
|
|
||||||
check_makefile "$srcdir" || \
|
check_makefile "$srcdir" && \
|
||||||
return 0
|
x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
|
||||||
|
|
||||||
$if_make_clean \
|
) || err "run_make_file" "$@"
|
||||||
make -C "$srcdir" $cleanargs distclean || \
|
|
||||||
x_ make -C "$srcdir" $cleanargs clean; :
|
$if_build \
|
||||||
|
x_ $mkhelper; :
|
||||||
}
|
}
|
||||||
|
|
||||||
check_cmake()
|
check_cmake()
|
||||||
{
|
{
|
||||||
$if_dry_build \
|
$if_dry_build \
|
||||||
return 0
|
return 0
|
||||||
[ ! -n "$cmakedir" ] && \
|
|
||||||
|
[ -z "$cmakedir" ] && \
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
check_makefile "$1" || \
|
check_makefile "$1" || \
|
||||||
|
|||||||
Reference in New Issue
Block a user