diff options
author | P. J. McDermott <pjm@nac.net> | 2012-11-08 00:56:25 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-11-08 01:01:23 (EST) |
commit | 83d6a78f143b64558c01b83b6fcbce3e8a508b6f (patch) | |
tree | c37d4382ab67d5dac48dfe17c95dc6488f2a37f1 /lib/buildsystem/make.sh | |
parent | 32c42f6b8bc583c04eb6bef96775a31286c2d2a9 (diff) |
Support a build target option in oh-autobuild.
Diffstat (limited to 'lib/buildsystem/make.sh')
-rw-r--r-- | lib/buildsystem/make.sh | 7 |
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() |