2012-05-21 15:12:37 +04:00
|
|
|
# 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/.
|
2004-11-24 18:55:31 +03:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2005-04-21 03:10:56 +04:00
|
|
|
|
2017-06-19 17:51:05 +03:00
|
|
|
libs-%: AB_CD=$*
|
2005-04-21 03:10:56 +04:00
|
|
|
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-$*
|
2015-11-05 07:44:30 +03:00
|
|
|
@$(MAKE) -C ../../devtools/shared/locales/ libs AB_CD=$* XPI_NAME=locale-$*
|
2005-04-21 03:10:56 +04:00
|
|
|
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$*
|
2007-10-10 22:49:04 +04:00
|
|
|
|
2015-11-05 00:35:53 +03:00
|
|
|
# target to be used by multi-locale l10n builds, just add this locale
|
2009-10-08 14:19:25 +04:00
|
|
|
# like regular chrome code
|
2017-06-19 17:51:05 +03:00
|
|
|
chrome-%: AB_CD=$*
|
2009-10-08 14:19:25 +04:00
|
|
|
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=$*
|
2009-05-21 22:02:08 +04:00
|
|
|
|
|
|
|
libs:: update.locale
|
2013-12-03 01:34:21 +04:00
|
|
|
sed -e 's/%AB_CD%/$(AB_CD)/' $< > $(FINAL_TARGET)/update.locale
|
2009-05-21 22:02:08 +04:00
|
|
|
|
bug 1370506, always merge for l10n repacks, with internally set merge dir, r=glandium
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
2017-06-16 16:21:16 +03:00
|
|
|
ifndef IS_LANGPACK
|
2007-10-10 22:49:04 +04:00
|
|
|
ifdef MOZ_CRASHREPORTER
|
2017-07-24 12:08:36 +03:00
|
|
|
libs:: $(call MERGE_FILE,crashreporter/crashreporter.ini)
|
2009-09-19 06:59:53 +04:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2014-09-29 22:50:56 +04:00
|
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/crashreporter.app/Contents/Resources
|
2007-10-10 22:49:04 +04:00
|
|
|
else
|
|
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)
|
|
|
|
endif
|
|
|
|
endif
|
bug 1370506, always merge for l10n repacks, with internally set merge dir, r=glandium
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
2017-06-16 16:21:16 +03:00
|
|
|
endif
|