Bug 1891710: part 2) Enable <Element-outerHTML.html> WPT for Trusted Types. r=smaug
[gecko.git] / browser / locales / Makefile.in
blob1b8f21be1ca64fd493b480d07d0afd2ec08c6aab
1 # vim:set ts=8 sw=8 sts=8 noet:
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 include $(topsrcdir)/config/config.mk
9 SUBMAKEFILES += \
10 $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/Makefile \
11 $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \
12 $(NULL)
14 # This makefile uses variable overrides from the l10n-% target to
15 # build non-default locales to non-default dist/ locations. Be aware!
17 PWD := $(CURDIR)
19 # These are defaulted to be compatible with the files the wget-en-US target
20 # pulls. You may override them if you provide your own files.
21 ZIP_IN ?= $(ABS_DIST)/$(PACKAGE)
23 ifdef MOZ_DEV_EDITION
24 MOZ_LANGPACK_EID=langpack-$(AB_CD)@devedition.mozilla.org
25 else
26 MOZ_LANGPACK_EID=langpack-$(AB_CD)@firefox.mozilla.org
27 endif
28 # For Nightly, we know where to get the builds from to do local repacks
29 ifdef NIGHTLY_BUILD
30 export EN_US_BINARY_URL ?= https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central
31 endif
33 ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT)))
34 MOZ_PKG_MAC_DSSTORE=$(ABS_DIST)/branding/dsstore
35 MOZ_PKG_MAC_BACKGROUND=$(ABS_DIST)/branding/background.png
36 MOZ_PKG_MAC_ICON=$(ABS_DIST)/branding/disk.icns
37 MOZ_PKG_MAC_EXTRA=--symlink '/Applications:/ '
38 endif
40 # Required for l10n.mk - defines a list of app sub dirs that should
41 # be included in langpack xpis.
42 DIST_SUBDIRS = $(DIST_SUBDIR)
44 include $(topsrcdir)/config/rules.mk
46 include $(topsrcdir)/toolkit/locales/l10n.mk
48 l10n-%: AB_CD=$*
49 l10n-%:
50 $(if $(filter en-US,$(AB_CD)),, @$(MAKE) merge-$*)
51 $(NSINSTALL) -D $(DIST)/install
52 @$(MAKE) -C ../themes/shared/app-marketplace-icons AB_CD=$* XPI_NAME=locale-$*
53 @$(MAKE) -C ../../toolkit/locales l10n-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
54 @$(MAKE) -C ../../extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$*
55 ifneq (,$(wildcard ../extensions/formautofill/locales))
56 @$(MAKE) -C ../extensions/formautofill/locales AB_CD=$* XPI_NAME=locale-$*
57 endif
58 @$(MAKE) -C ../extensions/report-site-issue/locales AB_CD=$* XPI_NAME=locale-$*
59 @$(MAKE) -C ../../devtools/client/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
60 @$(MAKE) -C ../../devtools/startup/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
61 @$(MAKE) l10n AB_CD=$* XPI_NAME=locale-$* PREF_DIR=$(PREF_DIR)
62 @$(MAKE) multilocale.txt-$* AB_CD=$* XPI_NAME=locale-$*
63 @$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales AB_CD=$* XPI_NAME=locale-$*
65 chrome-%: AB_CD=$*
66 chrome-%: IS_LANGUAGE_REPACK=1
67 chrome-%:
68 $(if $(filter en-US,$(AB_CD)),, @$(MAKE) merge-$*)
69 @$(MAKE) -C ../themes/shared/app-marketplace-icons chrome AB_CD=$*
70 @$(MAKE) -C ../../toolkit/locales chrome-$*
71 @$(MAKE) -C ../../extensions/spellcheck/locales chrome AB_CD=$*
72 ifneq (,$(wildcard ../extensions/formautofill/locales))
73 @$(MAKE) -C ../extensions/formautofill/locales chrome AB_CD=$*
74 endif
75 @$(MAKE) -C ../../devtools/client/locales chrome AB_CD=$*
76 @$(MAKE) -C ../../devtools/startup/locales chrome AB_CD=$*
77 @$(MAKE) chrome AB_CD=$*
78 @$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales chrome AB_CD=$*
79 @$(MAKE) -C ../extensions/report-site-issue/locales chrome AB_CD=$*
81 package-win32-installer: $(SUBMAKEFILES)
82 $(MAKE) -C ../installer/windows CONFIG_DIR=l10ngen ZIP_IN='$(ZIP_OUT)' installer
84 langpack: langpack-$(AB_CD)
86 # This is a generic target that will make a langpack, repack ZIP (+tarball)
87 # builds, and repack an installer if applicable. It is called from the
88 # tinderbox scripts. Alter it with caution.
90 installers-%: IS_LANGUAGE_REPACK=1
91 installers-%:
92 @$(MAKE) clobber-$*
93 @$(MAKE) l10n-$*
94 @$(MAKE) package-langpack-$*
95 @$(MAKE) repackage-zip-$*
96 ifeq (WINNT,$(OS_ARCH))
97 @$(MAKE) package-win32-installer AB_CD=$*
98 endif
99 @echo 'repackaging done'
101 ident:
102 @printf 'fx_revision '
103 @$(PYTHON3) $(topsrcdir)/config/printconfigsetting.py \
104 '$(STAGEDIST)'/application.ini App SourceStamp
105 @printf 'buildid '
106 @$(PYTHON3) $(topsrcdir)/config/printconfigsetting.py \
107 '$(STAGEDIST)'/application.ini App BuildID