From 25f46498fdee6e59f334a56d99b7e76d2a97ed82 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 13 Nov 2012 11:14:01 -0500 Subject: Return make's exit status. --- (limited to 'lib/buildsystem') diff --git a/lib/buildsystem/make.sh b/lib/buildsystem/make.sh index 20a74ae..f041e50 100644 --- a/lib/buildsystem/make.sh +++ b/lib/buildsystem/make.sh @@ -79,7 +79,7 @@ _oh_make_install() _oh_make_update_first_defined_target() { - _oh_local _ohbsmufdt_targets _ohbsmufdt_target + _oh_local _ohbsmufdt_targets _ohbsmufdt_target _ohbsmufdt_rc _ohbsmufdt_targets="${1}" shift @@ -89,12 +89,14 @@ _oh_make_update_first_defined_target() if [ -z "${_ohbsmufdt_targets}" ]; then make "${@}" + _ohbsmufdt_rc=${?} else for _ohbsmufdt_target in ${_ohbsmufdt_targets}; do # If the target is defined, ... if make -n "${_ohbsmufdt_target}" >/dev/null 2>&1; then # ... then update it. make "${@}" "${_ohbsmufdt_target}" + _ohbsmufdt_rc=${?} break fi done @@ -102,6 +104,6 @@ _oh_make_update_first_defined_target() cd "${_OH_BUILDSYSTEM_WORK_AREA}" - _oh_return 0 + _oh_return ${_ohbsmufdt_rc} return ${?} } -- cgit v0.9.1