summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rwxr-xr-xmk16
1 files changed, 9 insertions, 7 deletions
diff --git a/mk b/mk
index 08e6643a..9c1d8973 100755
--- a/mk
+++ b/mk
@@ -514,9 +514,16 @@ run_make_command()
$if_build \
x_ $premake
- (
+ run_make_command_real || return 1
+
+ $if_build \
+ x_ $mkhelper; :
+}
+
+run_make_command_real()
+{
$if_dry_build \
- exit 0
+ return 0
x_ check_cmake "$srcdir"
@@ -526,11 +533,6 @@ run_make_command()
check_makefile "$srcdir" || return 1
x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
-
- ) || err "run_make_command" "$@"
-
- $if_build \
- x_ $mkhelper; :
}
check_cmake()