Makefile.in (1845B)
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 L10N_PREF_JS_EXPORTS = $(firstword $(wildcard $(LOCALE_SRCDIR)/mobile-l10n.js) \ 14 $(srcdir)/en-US/mobile-l10n.js ) 15 L10N_PREF_JS_EXPORTS_PATH = $(FINAL_TARGET)/$(PREF_DIR) 16 L10N_PREF_JS_EXPORTS_FLAGS = $(PREF_PPFLAGS) --silence-missing-directive-warnings 17 PP_TARGETS += L10N_PREF_JS_EXPORTS 18 19 include $(topsrcdir)/config/rules.mk 20 21 # Required for l10n.mk - defines a list of app sub dirs that should 22 # be included in langpack xpis. 23 DIST_SUBDIRS = $(DIST_SUBDIR) 24 25 MOZ_LANGPACK_EID=langpack-$(AB_CD)@firefox.mozilla.org 26 27 include $(topsrcdir)/toolkit/locales/l10n.mk 28 29 # For historical reasons, kill stage for repacks due to library moves 30 # in PACKAGE and UNPACKAGE. 31 clobber-stage: 32 $(RM) -rf $(STAGEDIST) 33 34 # merge if we're not en-US, using conditional function as we need 35 # the current value of AB_CD 36 l10n-%: AB_CD=$* 37 l10n-%: 38 $(if $(filter en-US,$(AB_CD)),, $(MAKE) merge-$*) 39 $(MAKE) -C $(DEPTH)/mobile/locales l10n-$* 40 $(MAKE) l10n AB_CD=$* XPI_NAME=locale-$* PREF_DIR=defaults/pref 41 $(MAKE) multilocale.txt-$* AB_CD=$* XPI_NAME=locale-$* 42 43 # Tailored target to just add the chrome processing for multi-locale builds 44 # merge if we're not en-US, using conditional function as we need 45 # the current value of AB_CD 46 chrome-%: AB_CD=$* 47 chrome-%: IS_LANGUAGE_REPACK=1 48 chrome-%: 49 $(if $(filter en-US,$(AB_CD)),, $(MAKE) merge-$*) 50 $(MAKE) -C $(DEPTH)/mobile/locales chrome-$* 51 $(MAKE) chrome AB_CD=$*