diff options
author | P. J. McDermott <pjm@nac.net> | 2012-11-12 10:44:47 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-11-12 10:44:47 (EST) |
commit | 87d803d6c49607153e4fc38c0f110746761d2949 (patch) | |
tree | 47a5361dffae3fd600d6c267df7c875bb0ad8c14 /lib | |
parent | 0b58252dd39ff4b7421c16383696cba9608fb59e (diff) |
Make oh-autoinstall support the -T option.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/buildsystem/make.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/buildsystem/make.sh b/lib/buildsystem/make.sh index fe2d856..20a74ae 100644 --- a/lib/buildsystem/make.sh +++ b/lib/buildsystem/make.sh @@ -68,8 +68,13 @@ _oh_make_can_install() _oh_make_install() { - _oh_make_update_first_defined_target 'install' \ - "${@}" "DESTDIR=${_OH_BUILDSYSTEM_DESTDIR}" + if [ -n "${_OH_BUILDSYSTEM_BUILD_TARGET}" ]; then + _oh_make_update_first_defined_target "${_OH_BUILDSYSTEM_BUILD_TARGET}" \ + "${@}" "DESTDIR=${_OH_BUILDSYSTEM_DESTDIR}" + else + _oh_make_update_first_defined_target 'install' \ + "${@}" "DESTDIR=${_OH_BUILDSYSTEM_DESTDIR}" + fi } _oh_make_update_first_defined_target() |