2005-06-08 22:04:25 +04:00
|
|
|
# vim:set ts=8 sw=8 sts=8 noet:
|
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/.
|
2003-07-31 06:21:25 +04:00
|
|
|
|
2005-07-28 23:48:12 +04:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2008-10-20 23:57:47 +04:00
|
|
|
|
2006-06-29 03:26:14 +04:00
|
|
|
SUBMAKEFILES += \
|
|
|
|
$(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/Makefile \
|
|
|
|
$(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \
|
|
|
|
$(NULL)
|
2005-07-29 20:38:23 +04:00
|
|
|
|
2005-05-09 18:34:08 +04:00
|
|
|
# This makefile uses variable overrides from the libs-% target to
|
|
|
|
# build non-default locales to non-default dist/ locations. Be aware!
|
2003-07-31 06:21:25 +04:00
|
|
|
|
2009-03-12 01:39:24 +03:00
|
|
|
PWD := $(CURDIR)
|
2007-05-02 18:18:20 +04:00
|
|
|
|
2008-12-24 17:08:08 +03:00
|
|
|
# These are defaulted to be compatible with the files the wget-en-US target
|
2017-01-10 19:12:10 +03:00
|
|
|
# pulls. You may override them if you provide your own files.
|
2015-12-30 03:33:50 +03:00
|
|
|
ZIP_IN ?= $(ABS_DIST)/$(PACKAGE)
|
2008-11-14 19:26:53 +03:00
|
|
|
|
2018-04-19 21:48:11 +03:00
|
|
|
ifdef MOZ_DEV_EDITION
|
|
|
|
MOZ_LANGPACK_EID=langpack-$(AB_CD)@devedition.mozilla.org
|
|
|
|
else
|
2009-06-15 18:17:19 +04:00
|
|
|
MOZ_LANGPACK_EID=langpack-$(AB_CD)@firefox.mozilla.org
|
2018-04-19 21:48:11 +03:00
|
|
|
endif
|
2017-06-16 12:59:44 +03:00
|
|
|
# For Nightly, we know where to get the builds from to do local repacks
|
|
|
|
ifdef NIGHTLY_BUILD
|
|
|
|
export EN_US_BINARY_URL ?= https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central
|
|
|
|
endif
|
2004-11-30 11:23:02 +03:00
|
|
|
|
2009-08-14 15:06:15 +04:00
|
|
|
ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
2015-12-30 03:33:50 +03:00
|
|
|
MOZ_PKG_MAC_DSSTORE=$(ABS_DIST)/branding/dsstore
|
|
|
|
MOZ_PKG_MAC_BACKGROUND=$(ABS_DIST)/branding/background.png
|
|
|
|
MOZ_PKG_MAC_ICON=$(ABS_DIST)/branding/disk.icns
|
2013-12-03 01:34:21 +04:00
|
|
|
MOZ_PKG_MAC_EXTRA=--symlink '/Applications:/ '
|
2009-08-14 15:06:15 +04:00
|
|
|
endif
|
|
|
|
|
2019-01-23 00:58:49 +03:00
|
|
|
ifeq ($(CPU_ARCH), aarch64)
|
|
|
|
MOZ_SFX_PACKAGE=$(topsrcdir)/other-licenses/7zstub/firefox/7zSD.ARM64.sfx
|
|
|
|
else
|
|
|
|
MOZ_SFX_PACKAGE=$(topsrcdir)/other-licenses/7zstub/firefox/7zSD.Win32.sfx
|
|
|
|
endif
|
2017-03-22 03:52:35 +03:00
|
|
|
|
2013-02-13 00:51:23 +04:00
|
|
|
# Required for l10n.mk - defines a list of app sub dirs that should
|
|
|
|
# be included in langpack xpis.
|
|
|
|
DIST_SUBDIRS = $(DIST_SUBDIR)
|
|
|
|
|
2004-07-12 21:15:10 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2004-11-30 11:23:02 +03:00
|
|
|
|
2009-06-15 18:17:19 +04:00
|
|
|
include $(topsrcdir)/toolkit/locales/l10n.mk
|
|
|
|
|
2017-06-19 17:51:05 +03:00
|
|
|
libs-%: AB_CD=$*
|
2005-04-21 03:10:56 +04: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-$*)
|
2008-10-20 23:57:47 +04:00
|
|
|
$(NSINSTALL) -D $(DIST)/install
|
2015-11-05 08:45:51 +03:00
|
|
|
@$(MAKE) -C ../../toolkit/locales libs-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
|
2012-11-13 11:17:14 +04:00
|
|
|
@$(MAKE) -C ../../services/sync/locales AB_CD=$* XPI_NAME=locale-$*
|
|
|
|
@$(MAKE) -C ../../extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$*
|
2017-08-25 19:57:39 +03:00
|
|
|
ifneq (,$(wildcard ../extensions/formautofill/locales))
|
2017-07-25 05:40:21 +03:00
|
|
|
@$(MAKE) -C ../extensions/formautofill/locales AB_CD=$* XPI_NAME=locale-$*
|
2017-06-02 12:44:56 +03:00
|
|
|
endif
|
2017-04-05 01:40:50 +03:00
|
|
|
@$(MAKE) -C ../extensions/webcompat-reporter/locales AB_CD=$* XPI_NAME=locale-$*
|
2015-11-05 08:45:51 +03:00
|
|
|
@$(MAKE) -C ../../devtools/client/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
|
2018-03-12 16:41:48 +03:00
|
|
|
@$(MAKE) -C ../../devtools/startup/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
|
2012-11-13 11:17:14 +04:00
|
|
|
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=$(PREF_DIR)
|
2018-02-14 10:42:14 +03:00
|
|
|
@$(MAKE) multilocale.txt-$* AB_CD=$* XPI_NAME=locale-$*
|
2012-11-13 11:17:14 +04:00
|
|
|
@$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales AB_CD=$* XPI_NAME=locale-$*
|
2005-04-21 03:10:56 +04:00
|
|
|
|
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
|
2017-05-09 00:34:32 +03: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-$*)
|
2017-05-09 00:34:32 +03:00
|
|
|
@$(MAKE) -C ../../toolkit/locales chrome-$*
|
|
|
|
@$(MAKE) -C ../../services/sync/locales chrome AB_CD=$*
|
|
|
|
@$(MAKE) -C ../../extensions/spellcheck/locales chrome AB_CD=$*
|
2017-08-25 19:57:39 +03:00
|
|
|
ifneq (,$(wildcard ../extensions/formautofill/locales))
|
2017-07-25 05:40:21 +03:00
|
|
|
@$(MAKE) -C ../extensions/formautofill/locales chrome AB_CD=$*
|
2017-05-09 00:34:32 +03:00
|
|
|
endif
|
|
|
|
@$(MAKE) -C ../../devtools/client/locales chrome AB_CD=$*
|
2018-03-12 16:41:48 +03:00
|
|
|
@$(MAKE) -C ../../devtools/startup/locales chrome AB_CD=$*
|
2017-05-09 00:34:32 +03:00
|
|
|
@$(MAKE) chrome AB_CD=$*
|
|
|
|
@$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales chrome AB_CD=$*
|
|
|
|
@$(MAKE) -C ../extensions/webcompat-reporter/locales chrome AB_CD=$*
|
|
|
|
|
2017-08-04 18:19:12 +03:00
|
|
|
package-win32-installer: $(SUBMAKEFILES)
|
2018-04-16 21:49:53 +03:00
|
|
|
$(MAKE) -C ../installer/windows CONFIG_DIR=l10ngen ZIP_IN='$(ZIP_OUT)' installer
|
2004-11-30 11:23:02 +03:00
|
|
|
|
2009-04-07 21:21:57 +04:00
|
|
|
langpack: langpack-$(AB_CD)
|
|
|
|
|
2005-04-21 03:10:56 +04:00
|
|
|
# This is a generic target that will make a langpack, repack ZIP (+tarball)
|
|
|
|
# builds, and repack an installer if applicable. 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-$*
|
|
|
|
@$(MAKE) libs-$*
|
|
|
|
@$(MAKE) package-langpack-$*
|
|
|
|
@$(MAKE) repackage-zip-$*
|
|
|
|
ifeq (WINNT,$(OS_ARCH))
|
2018-04-16 21:49:53 +03:00
|
|
|
@$(MAKE) package-win32-installer AB_CD=$*
|
2017-08-04 18:19:12 +03:00
|
|
|
endif
|
2013-12-03 01:34:21 +04:00
|
|
|
@echo 'repackaging done'
|
2005-06-08 22:04:25 +04:00
|
|
|
|
2008-10-20 23:57:47 +04:00
|
|
|
ident:
|
2013-12-03 01:34:21 +04:00
|
|
|
@printf 'fx_revision '
|
2009-06-25 20:31:06 +04:00
|
|
|
@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py \
|
2017-11-29 01:21:54 +03:00
|
|
|
'$(STAGEDIST)'/application.ini App SourceStamp
|
2013-12-03 01:34:21 +04:00
|
|
|
@printf 'buildid '
|
2009-06-25 20:31:06 +04:00
|
|
|
@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py \
|
2017-11-29 01:21:54 +03:00
|
|
|
'$(STAGEDIST)'/application.ini App BuildID
|
2008-10-20 23:57:47 +04:00
|
|
|
|
2011-03-18 20:29:56 +03:00
|
|
|
# test target, depends on make package
|
|
|
|
# try to repack x-test, with just toolkit/defines.inc being there
|
2012-09-20 21:36:08 +04:00
|
|
|
l10n-check:: INNER_UNMAKE_PACKAGE=true
|
2011-03-18 20:29:56 +03:00
|
|
|
l10n-check::
|
|
|
|
$(RM) -rf x-test
|
|
|
|
$(NSINSTALL) -D x-test/toolkit
|
2013-12-03 01:34:21 +04:00
|
|
|
echo '#define MOZ_LANG_TITLE Just testing' > x-test/toolkit/defines.inc
|
2017-05-03 18:27:47 +03:00
|
|
|
@# ZIP_IN='$(ZIP_IN)' will pass down the *current* value of ZIP_IN, and
|
|
|
|
@# we do the same for WIN32_INSTALLER_IN, which are based on MOZ_SIMPLE_PACKAGE_NAME
|
|
|
|
@# not being reset, overwriting the value they would get with MOZ_SIMPLE_PACKAGE_NAME
|
|
|
|
@# reset.
|
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
|
|
|
$(MAKE) installers-x-test L10NBASEDIR='$(PWD)' \
|
2017-08-04 18:19:12 +03:00
|
|
|
ZIP_IN='$(ZIP_IN)' MOZ_SIMPLE_PACKAGE_NAME=
|
2016-02-02 17:04:40 +03:00
|
|
|
$(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/unpack.py $(DIST)/l10n-stage/$(MOZ_PKG_DIR)$(_RESPATH)
|
2017-09-16 13:41:57 +03:00
|
|
|
cd $(DIST)/l10n-stage && test $$(cat $(MOZ_PKG_DIR)$(_RESPATH)/update.locale) = x-test
|