summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem
diff options
context:
space:
mode:
Diffstat (limited to 'lib/buildsystem')
-rw-r--r--lib/buildsystem/make.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/buildsystem/make.sh b/lib/buildsystem/make.sh
index 5df424a..0268c8c 100644
--- a/lib/buildsystem/make.sh
+++ b/lib/buildsystem/make.sh
@@ -33,7 +33,12 @@ _oh_make_can_build()
_oh_make_build()
{
- _oh_make_update_first_defined_target '' "${@}"
+ if [ -n "${_OH_BUILDSYSTEM_BUILD_TARGET}" ]; then
+ _oh_make_update_first_defined_target "${_OH_BUILDSYSTEM_BUILD_TARGET}" \
+ "${@}"
+ else
+ _oh_make_update_first_defined_target '' "${@}"
+ fi
}
_oh_make_can_clean()