Bug 756156 - Don't export ANDROID_SERIAL if it isn't set explicitly [r=glandium]

This commit is contained in:
Matt Brubeck 2012-05-17 12:20:42 -07:00
parent 5013c7f815
commit 0c55d38394

View File

@ -79,7 +79,9 @@ ifeq ($(OS_TARGET),Android)
ifneq ($(MOZ_ANDROID_INSTALL_TARGET),)
ANDROID_SERIAL = $(MOZ_ANDROID_INSTALL_TARGET)
endif
ifeq ($(ANDROID_SERIAL),)
ifneq ($(ANDROID_SERIAL),)
export ANDROID_SERIAL
else
# Determine if there's more than one device connected
android_devices=$(filter device,$(shell $(ANDROID_PLATFORM_TOOLS)/adb devices))
ifneq ($(android_devices),device)
@ -90,7 +92,6 @@ install::
endif
endif
export ANDROID_SERIAL
install::
$(ANDROID_PLATFORM_TOOLS)/adb install -r $(DIST)/$(PKG_PATH)$(PKG_BASENAME).apk
else