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