michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: include $(topsrcdir)/config/config.mk michael@0: michael@0: SUBMAKEFILES += \ michael@0: $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/Makefile \ michael@0: $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \ michael@0: $(DEPTH)/mobile/locales/Makefile \ michael@0: $(NULL) michael@0: michael@0: PREF_JS_EXPORTS = $(firstword $(wildcard $(LOCALE_SRCDIR)/mobile-l10n.js) \ michael@0: @srcdir@/en-US/mobile-l10n.js ) michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: include $(topsrcdir)/toolkit/locales/l10n.mk michael@0: michael@0: clobber-zip: michael@0: $(RM) $(STAGEDIST)/chrome/$(AB_CD).jar \ michael@0: $(STAGEDIST)/chrome/$(AB_CD).manifest \ michael@0: $(STAGEDIST)/defaults/pref/mobile-l10n.js michael@0: $(RM) -r $(STAGEDIST)/dictionaries \ michael@0: $(STAGEDIST)/hyphenation \ michael@0: $(STAGEDIST)/defaults/profile \ michael@0: $(STAGEDIST)/chrome/$(AB_CD) michael@0: michael@0: # need to kill stage for repacks for now due to the library moves michael@0: # in PACKAGE and UNPACKAGE michael@0: # also clean up potential left-overs of multi-locale builds, notably michael@0: # values-*/strings.xml. Those would be in the way of a single locale build, michael@0: # which this target is for michael@0: clobber-stage: michael@0: $(RM) -rf $(STAGEDIST) michael@0: $(RM) $(DEPTH)/mobile/android/base/res/values-*/strings.xml michael@0: michael@0: libs-%: michael@0: @$(MAKE) -C $(DEPTH)/mobile/locales libs-$* michael@0: @$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=defaults/pref michael@0: ifeq ($(OS_TARGET),Android) michael@0: @$(MAKE) -C $(DEPTH)/mobile/android/base/locales AB_CD=$* XPI_NAME=locale-$* michael@0: endif michael@0: michael@0: # Tailored target to just add the chrome processing for multi-locale builds michael@0: chrome-%: michael@0: @$(MAKE) -C $(DEPTH)/mobile/locales chrome-$* michael@0: @$(MAKE) chrome AB_CD=$* michael@0: ifeq ($(OS_TARGET),Android) michael@0: @$(MAKE) -C $(DEPTH)/mobile/android/base/locales chrome-$* michael@0: endif michael@0: michael@0: # This is a generic target that will make a langpack and repack tarball michael@0: # builds. It is called from the tinderbox scripts. Alter it with caution. michael@0: michael@0: installers-%: clobber-stage repackage-zip-% michael@0: @echo 'repackaging done' michael@0: michael@0: # When we unpack fennec on MacOS X the platform.ini and application.ini are in slightly michael@0: # different locations that on all other platforms michael@0: ifeq (Darwin, $(OS_ARCH)) michael@0: ifdef LIBXUL_SDK michael@0: GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/../Frameworks/XUL.framework/Versions/$(MOZILLA_VERSION)/platform.ini' michael@0: else michael@0: GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/platform.ini' michael@0: endif michael@0: FENNEC_APPLICATION_INI_PATH='$(STAGEDIST)/application.ini' michael@0: else michael@0: ifdef LIBXUL_SDK michael@0: GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/xulrunner/platform.ini' michael@0: else michael@0: GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/platform.ini' michael@0: endif michael@0: FENNEC_APPLICATION_INI_PATH='$(STAGEDIST)/application.ini' michael@0: endif michael@0: michael@0: ident: michael@0: @printf 'gecko_revision ' michael@0: @$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(GECKO_PLATFORM_INI_PATH) Build SourceStamp michael@0: @printf 'fennec_revision ' michael@0: @$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App SourceStamp michael@0: @printf 'buildid ' michael@0: @$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App BuildID michael@0: michael@0: merge-%: michael@0: ifdef LOCALE_MERGEDIR michael@0: $(RM) -rf $(LOCALE_MERGEDIR) michael@0: MACOSX_DEPLOYMENT_TARGET= compare-locales -m $(LOCALE_MERGEDIR) $(srcdir)/l10n.ini $(L10NBASEDIR) $* michael@0: endif michael@0: @echo