summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/buildsystem/make.sh6
1 files changed, 4 insertions, 2 deletions
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 ${?}
}