1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 include $(topsrcdir
)/toolkit
/mozapps
/installer
/package-name.mk
8 @
$(MAKE
) -C mobile
/android
/installer installer
11 @
$(MAKE
) -C mobile
/android
/installer
14 @
$(MAKE
) package MOZ_FAST_PACKAGE
=1
16 ifeq ($(OS_TARGET
),Android
)
17 ifneq ($(MOZ_ANDROID_INSTALL_TARGET
),)
18 ANDROID_SERIAL
= $(MOZ_ANDROID_INSTALL_TARGET
)
20 ifneq ($(ANDROID_SERIAL
),)
23 # Determine if there's more than one device connected
24 android_devices
=$(filter device
,$(shell $(ADB
) devices
))
25 ifeq ($(android_devices
),)
27 @echo
"No devices are connected. Connect a device or start an emulator."
30 ifneq ($(android_devices
),device
)
32 @echo
"Multiple devices are connected. Define ANDROID_SERIAL to specify the install target."
40 $(ADB
) install -r
$(DIST
)/$(PKG_PATH
)$(PKG_BASENAME
).apk
42 @echo
"Mobile can't be installed directly."
47 @
$(MAKE
) -C mobile
/android
/installer deb
50 @
$(MAKE
) -C mobile
/android
/installer upload
53 # Implemented in testing/testsuite-targets.mk
55 mochitest-browser-chrome
:
56 $(RUN_MOCHITEST
) --browser-chrome
59 mochitest
:: mochitest-browser-chrome
61 .PHONY
: mochitest-browser-chrome
64 ifeq ($(OS_TARGET
),Linux
)