|
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/. |
|
4 |
|
5 include $(topsrcdir)/config/config.mk |
|
6 |
|
7 SUBMAKEFILES += \ |
|
8 $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/Makefile \ |
|
9 $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \ |
|
10 $(DEPTH)/mobile/locales/Makefile \ |
|
11 $(NULL) |
|
12 |
|
13 PREF_JS_EXPORTS = $(firstword $(wildcard $(LOCALE_SRCDIR)/mobile-l10n.js) \ |
|
14 @srcdir@/en-US/mobile-l10n.js ) |
|
15 |
|
16 include $(topsrcdir)/config/rules.mk |
|
17 |
|
18 include $(topsrcdir)/toolkit/locales/l10n.mk |
|
19 |
|
20 clobber-zip: |
|
21 $(RM) $(STAGEDIST)/chrome/$(AB_CD).jar \ |
|
22 $(STAGEDIST)/chrome/$(AB_CD).manifest \ |
|
23 $(STAGEDIST)/defaults/pref/mobile-l10n.js |
|
24 $(RM) -r $(STAGEDIST)/dictionaries \ |
|
25 $(STAGEDIST)/hyphenation \ |
|
26 $(STAGEDIST)/defaults/profile \ |
|
27 $(STAGEDIST)/chrome/$(AB_CD) |
|
28 |
|
29 # need to kill stage for repacks for now due to the library moves |
|
30 # in PACKAGE and UNPACKAGE |
|
31 # also clean up potential left-overs of multi-locale builds, notably |
|
32 # values-*/strings.xml. Those would be in the way of a single locale build, |
|
33 # which this target is for |
|
34 clobber-stage: |
|
35 $(RM) -rf $(STAGEDIST) |
|
36 $(RM) $(DEPTH)/mobile/android/base/res/values-*/strings.xml |
|
37 |
|
38 libs-%: |
|
39 @$(MAKE) -C $(DEPTH)/mobile/locales libs-$* |
|
40 @$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=defaults/pref |
|
41 ifeq ($(OS_TARGET),Android) |
|
42 @$(MAKE) -C $(DEPTH)/mobile/android/base/locales AB_CD=$* XPI_NAME=locale-$* |
|
43 endif |
|
44 |
|
45 # Tailored target to just add the chrome processing for multi-locale builds |
|
46 chrome-%: |
|
47 @$(MAKE) -C $(DEPTH)/mobile/locales chrome-$* |
|
48 @$(MAKE) chrome AB_CD=$* |
|
49 ifeq ($(OS_TARGET),Android) |
|
50 @$(MAKE) -C $(DEPTH)/mobile/android/base/locales chrome-$* |
|
51 endif |
|
52 |
|
53 # This is a generic target that will make a langpack and repack tarball |
|
54 # builds. It is called from the tinderbox scripts. Alter it with caution. |
|
55 |
|
56 installers-%: clobber-stage repackage-zip-% |
|
57 @echo 'repackaging done' |
|
58 |
|
59 # When we unpack fennec on MacOS X the platform.ini and application.ini are in slightly |
|
60 # different locations that on all other platforms |
|
61 ifeq (Darwin, $(OS_ARCH)) |
|
62 ifdef LIBXUL_SDK |
|
63 GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/../Frameworks/XUL.framework/Versions/$(MOZILLA_VERSION)/platform.ini' |
|
64 else |
|
65 GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/platform.ini' |
|
66 endif |
|
67 FENNEC_APPLICATION_INI_PATH='$(STAGEDIST)/application.ini' |
|
68 else |
|
69 ifdef LIBXUL_SDK |
|
70 GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/xulrunner/platform.ini' |
|
71 else |
|
72 GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/platform.ini' |
|
73 endif |
|
74 FENNEC_APPLICATION_INI_PATH='$(STAGEDIST)/application.ini' |
|
75 endif |
|
76 |
|
77 ident: |
|
78 @printf 'gecko_revision ' |
|
79 @$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(GECKO_PLATFORM_INI_PATH) Build SourceStamp |
|
80 @printf 'fennec_revision ' |
|
81 @$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App SourceStamp |
|
82 @printf 'buildid ' |
|
83 @$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App BuildID |
|
84 |
|
85 merge-%: |
|
86 ifdef LOCALE_MERGEDIR |
|
87 $(RM) -rf $(LOCALE_MERGEDIR) |
|
88 MACOSX_DEPLOYMENT_TARGET= compare-locales -m $(LOCALE_MERGEDIR) $(srcdir)/l10n.ini $(L10NBASEDIR) $* |
|
89 endif |
|
90 @echo |