mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
aebc0e7f7e
To not merge the en-US language pack, the merge-% steps are in a conditional function that disables that for en-US. Using a function here as that's easier than a shell if in the merge rule, and Makefile conditionals don't get evaluated late enough. To liberate the l10n builds from settings in the automation, we move the patch logic from LOCALE_MERGEDIR to REAL_LOCALE_MERGEDIR. To determine strongly when we're in a repack or building a langpack, the trick here is to export IS_LANGUAGE_REPACK in l10n.mk, and only set that to true in the entry-point rules. Now, we can use that value in config.mk to define the l10n-specific rules. I did the same thing for langpack-%, which allows us to disable the crashreporter files for language packs, for example. With that, make installers-de just works, if you have localizations checked out. For a while, we might run l10n-merge twice in automation, but it's really not optional, so let's just make sure we run it. MozReview-Commit-ID: 3nr33CKxkBQ --HG-- extra : rebase_source : 0605a4adba018fa4b85d563cdafba80b0533bc91
37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
libs-%: AB_CD=$*
|
|
libs-%:
|
|
@$(MAKE) -C ../../netwerk/locales/ libs AB_CD=$* XPI_NAME=locale-$*
|
|
@$(MAKE) -C ../../dom/locales/ libs AB_CD=$* XPI_NAME=locale-$*
|
|
@$(MAKE) -C ../../security/manager/locales/ libs AB_CD=$* XPI_NAME=locale-$*
|
|
@$(MAKE) -C ../../devtools/shared/locales/ libs AB_CD=$* XPI_NAME=locale-$*
|
|
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$*
|
|
|
|
# target to be used by multi-locale l10n builds, just add this locale
|
|
# like regular chrome code
|
|
chrome-%: AB_CD=$*
|
|
chrome-%:
|
|
@$(MAKE) -C $(DEPTH)/netwerk/locales/ chrome AB_CD=$*
|
|
@$(MAKE) -C $(DEPTH)/dom/locales/ chrome AB_CD=$*
|
|
@$(MAKE) -C $(DEPTH)/security/manager/locales/ chrome AB_CD=$*
|
|
@$(MAKE) chrome AB_CD=$*
|
|
|
|
libs:: update.locale
|
|
sed -e 's/%AB_CD%/$(AB_CD)/' $< > $(FINAL_TARGET)/update.locale
|
|
|
|
ifndef IS_LANGPACK
|
|
ifdef MOZ_CRASHREPORTER
|
|
libs:: $(call MERGE_FILE,crashreporter/crashreporter.ini)
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/crashreporter.app/Contents/Resources
|
|
else
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)
|
|
endif
|
|
endif
|
|
endif
|