Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
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
7 installer:
8 @$(MAKE) -C mobile/android/installer installer
10 package:
11 @$(MAKE) -C mobile/android/installer
13 ifeq ($(OS_TARGET),Android)
14 ifneq ($(MOZ_ANDROID_INSTALL_TARGET),)
15 ANDROID_SERIAL = $(MOZ_ANDROID_INSTALL_TARGET)
16 endif
17 ifneq ($(ANDROID_SERIAL),)
18 export ANDROID_SERIAL
19 else
20 # Determine if there's more than one device connected
21 android_devices=$(filter device,$(shell $(ADB) devices))
22 ifeq ($(android_devices),)
23 install::
24 @echo 'No devices are connected. Connect a device or start an emulator.'
25 @exit 1
26 else
27 ifneq ($(android_devices),device)
28 install::
29 @echo 'Multiple devices are connected. Define ANDROID_SERIAL to specify the install target.'
30 $(ADB) devices
31 @exit 1
32 endif
33 endif
34 endif
36 install::
37 $(ADB) install -r $(DIST)/$(PKG_PATH)$(PKG_BASENAME).apk
38 else
39 @echo 'Mobile can't be installed directly.'
40 @exit 1
41 endif
43 deb: package
44 @$(MAKE) -C mobile/android/installer deb
46 upload::
47 @$(MAKE) -C mobile/android/installer upload
49 ifdef ENABLE_TESTS
50 # Implemented in testing/testsuite-targets.mk
52 mochitest-browser-chrome:
53 $(RUN_MOCHITEST) --browser-chrome
54 $(CHECK_TEST_ERROR)
56 mochitest:: mochitest-browser-chrome
58 .PHONY: mochitest-browser-chrome
59 endif
61 ifeq ($(OS_TARGET),Linux)
62 deb: installer
63 endif