summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/buildsystem/make.sh')
-rw-r--r--lib/buildsystem/make.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/buildsystem/make.sh b/lib/buildsystem/make.sh
index 7ed9dc0..1eacaee 100644
--- a/lib/buildsystem/make.sh
+++ b/lib/buildsystem/make.sh
@@ -93,10 +93,10 @@ _oh_make_update_first_defined_target()
mkdir -p "${_OH_BUILDSYSTEM_BUILD_DIR}"
cd "${_OH_BUILDSYSTEM_BUILD_DIR}"
- if [ -n "${_OH_BUILDSYSTEM_BUILD_TARGET}" ]; then
+ if [ "x${_OH_BUILDSYSTEM_BUILD_TARGET+set}" = 'xset' ]; then
make "${@}" "${_OH_BUILDSYSTEM_BUILD_TARGET}"
rc=${?}
- elif [ -n "${targets}" ]; then
+ elif [ "x${targets+set}" = 'xset' ]; then
for target in ${targets}; do
# If the target is defined, ...
if make -n "${target}" >/dev/null 2>&1; then