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/.
|
2008-10-01 02:03:16 +04:00
|
|
|
|
2009-01-26 19:43:38 +03:00
|
|
|
include $(topsrcdir)/config/config.mk
|
2008-10-01 02:03:16 +04:00
|
|
|
|
2009-09-06 22:53:04 +04:00
|
|
|
SUBMAKEFILES += \
|
|
|
|
$(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/Makefile \
|
|
|
|
$(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \
|
2012-01-10 14:10:22 +04:00
|
|
|
$(DEPTH)/mobile/locales/Makefile \
|
2009-09-06 22:53:04 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2015-01-20 21:07:03 +03:00
|
|
|
L10N_PREF_JS_EXPORTS = $(firstword $(wildcard $(LOCALE_SRCDIR)/mobile-l10n.js) \
|
|
|
|
$(srcdir)/en-US/mobile-l10n.js )
|
|
|
|
L10N_PREF_JS_EXPORTS_PATH = $(FINAL_TARGET)/$(PREF_DIR)
|
|
|
|
L10N_PREF_JS_EXPORTS_FLAGS = $(PREF_PPFLAGS) --silence-missing-directive-warnings
|
|
|
|
PP_TARGETS += L10N_PREF_JS_EXPORTS
|
2008-10-01 02:03:16 +04:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2009-01-26 19:43:38 +03:00
|
|
|
|
|
|
|
include $(topsrcdir)/toolkit/locales/l10n.mk
|
|
|
|
|
2011-12-06 19:54:12 +04:00
|
|
|
# need to kill stage for repacks for now due to the library moves
|
|
|
|
# in PACKAGE and UNPACKAGE
|
|
|
|
# also clean up potential left-overs of multi-locale builds, notably
|
2014-05-09 12:39:14 +04:00
|
|
|
# values-*/strings.xml and raw-*/suggestedsites.json.
|
|
|
|
# Those would be in the way of a single locale build, which this
|
|
|
|
# target is for
|
2011-12-06 19:54:12 +04:00
|
|
|
clobber-stage:
|
|
|
|
$(RM) -rf $(STAGEDIST)
|
|
|
|
$(RM) $(DEPTH)/mobile/android/base/res/values-*/strings.xml
|
2014-05-09 12:39:14 +04:00
|
|
|
$(RM) $(DEPTH)/mobile/android/base/res/raw-*/suggestedsites.json
|
2011-12-06 19:54:12 +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
|
|
|
# merge if we're not en-US, using conditional function as we need
|
|
|
|
# the current value of AB_CD
|
2017-06-19 17:51:05 +03:00
|
|
|
libs-%: AB_CD=$*
|
2009-01-26 19:43:38 +03:00
|
|
|
libs-%:
|
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
|
|
|
$(if $(filter en-US,$(AB_CD)),, @$(MAKE) merge-$*)
|
2012-11-13 11:17:14 +04:00
|
|
|
@$(MAKE) -C $(DEPTH)/mobile/locales libs-$*
|
|
|
|
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=defaults/pref
|
2011-12-22 03:10:06 +04:00
|
|
|
ifeq ($(OS_TARGET),Android)
|
2012-11-13 11:17:14 +04:00
|
|
|
@$(MAKE) -C $(DEPTH)/mobile/android/base/locales AB_CD=$* XPI_NAME=locale-$*
|
2011-12-22 03:10:06 +04:00
|
|
|
endif
|
2009-01-26 19:43:38 +03:00
|
|
|
|
2009-10-08 19:47:29 +04:00
|
|
|
# Tailored target to just add the chrome processing for multi-locale builds
|
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
|
|
|
# merge if we're not en-US, using conditional function as we need
|
|
|
|
# the current value of AB_CD
|
2017-06-19 17:51:05 +03:00
|
|
|
chrome-%: AB_CD=$*
|
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
|
|
|
chrome-%: IS_LANGUAGE_REPACK=1
|
2009-10-08 19:47:29 +04:00
|
|
|
chrome-%:
|
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
|
|
|
$(if $(filter en-US,$(AB_CD)),, @$(MAKE) merge-$*)
|
2011-12-22 03:10:06 +04:00
|
|
|
@$(MAKE) -C $(DEPTH)/mobile/locales chrome-$*
|
2009-10-08 19:47:29 +04:00
|
|
|
@$(MAKE) chrome AB_CD=$*
|
2010-12-23 00:13:22 +03:00
|
|
|
ifeq ($(OS_TARGET),Android)
|
2011-12-06 19:54:12 +04:00
|
|
|
@$(MAKE) -C $(DEPTH)/mobile/android/base/locales chrome-$*
|
2010-12-23 00:13:22 +03:00
|
|
|
endif
|
2009-10-08 19:47:29 +04:00
|
|
|
|
2009-01-26 19:43:38 +03:00
|
|
|
# This is a generic target that will make a langpack and repack tarball
|
|
|
|
# builds. It is called from the tinderbox scripts. Alter it with caution.
|
|
|
|
|
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
|
|
|
installers-%: IS_LANGUAGE_REPACK=1
|
2017-08-04 18:19:12 +03:00
|
|
|
installers-%:
|
|
|
|
@$(MAKE) clobber-stage
|
|
|
|
@$(MAKE) libs-$*
|
|
|
|
@$(MAKE) repackage-zip-$*
|
2013-12-03 01:34:21 +04:00
|
|
|
@echo 'repackaging done'
|
2009-02-27 01:16:07 +03:00
|
|
|
|
2009-10-06 00:50:34 +04:00
|
|
|
# When we unpack fennec on MacOS X the platform.ini and application.ini are in slightly
|
|
|
|
# different locations that on all other platforms
|
|
|
|
ifeq (Darwin, $(OS_ARCH))
|
2013-12-03 01:34:21 +04:00
|
|
|
GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/platform.ini'
|
|
|
|
FENNEC_APPLICATION_INI_PATH='$(STAGEDIST)/application.ini'
|
2009-10-06 00:50:34 +04:00
|
|
|
else
|
2013-12-03 01:34:21 +04:00
|
|
|
GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/platform.ini'
|
|
|
|
FENNEC_APPLICATION_INI_PATH='$(STAGEDIST)/application.ini'
|
2009-10-06 00:50:34 +04:00
|
|
|
endif
|
2009-11-05 16:02:24 +03:00
|
|
|
|
2009-02-27 01:16:07 +03:00
|
|
|
ident:
|
2013-12-03 01:34:21 +04:00
|
|
|
@printf 'gecko_revision '
|
2009-10-06 00:50:34 +04:00
|
|
|
@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(GECKO_PLATFORM_INI_PATH) Build SourceStamp
|
2013-12-03 01:34:21 +04:00
|
|
|
@printf 'fennec_revision '
|
2009-10-06 00:50:34 +04:00
|
|
|
@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App SourceStamp
|
2013-12-03 01:34:21 +04:00
|
|
|
@printf 'buildid '
|
2009-11-19 21:38:43 +03:00
|
|
|
@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App BuildID
|