Makefile.in (2814B)
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/. 5 6 include $(topsrcdir)/config/config.mk 7 8 9 SUBMAKEFILES += \ 10 $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/Makefile \ 11 $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \ 12 $(NULL) 13 14 # This makefile uses variable overrides from the l10n-% target to 15 # build non-default locales to non-default dist/ locations. Be aware! 16 17 PWD := $(CURDIR) 18 19 ZIP_IN ?= $(ABS_DIST)/$(PACKAGE) 20 21 ifdef MOZ_DEV_EDITION 22 MOZ_LANGPACK_EID=langpack-$(AB_CD)@devedition.mozilla.org 23 else 24 MOZ_LANGPACK_EID=langpack-$(AB_CD)@firefox.mozilla.org 25 endif 26 27 # Required for l10n.mk - defines a list of app sub dirs that should 28 # be included in langpack xpis. 29 DIST_SUBDIRS = $(DIST_SUBDIR) 30 31 include $(topsrcdir)/config/rules.mk 32 33 include $(topsrcdir)/toolkit/locales/l10n.mk 34 35 l10n-%: AB_CD=$* 36 l10n-%: 37 $(if $(filter en-US,$(AB_CD)),, @$(MAKE) merge-$*) 38 $(NSINSTALL) -D $(DIST)/install 39 @$(MAKE) -C ../themes/shared/app-marketplace-icons AB_CD=$* XPI_NAME=locale-$* 40 @$(MAKE) -C ../../toolkit/locales l10n-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)' 41 @$(MAKE) -C ../../extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$* 42 @$(MAKE) -C ../../devtools/client/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)' 43 @$(MAKE) -C ../../devtools/startup/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)' 44 @$(MAKE) l10n AB_CD=$* XPI_NAME=locale-$* PREF_DIR=$(PREF_DIR) 45 @$(MAKE) multilocale.txt-$* AB_CD=$* XPI_NAME=locale-$* 46 @$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales AB_CD=$* XPI_NAME=locale-$* 47 48 chrome-%: AB_CD=$* 49 chrome-%: IS_LANGUAGE_REPACK=1 50 chrome-%: 51 $(if $(filter en-US,$(AB_CD)),, @$(MAKE) merge-$*) 52 @$(MAKE) -C ../themes/shared/app-marketplace-icons chrome AB_CD=$* 53 @$(MAKE) -C ../../toolkit/locales chrome-$* 54 @$(MAKE) -C ../../extensions/spellcheck/locales chrome AB_CD=$* 55 @$(MAKE) -C ../../devtools/client/locales chrome AB_CD=$* 56 @$(MAKE) -C ../../devtools/startup/locales chrome AB_CD=$* 57 @$(MAKE) chrome AB_CD=$* 58 @$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales chrome AB_CD=$* 59 60 package-win32-installer: $(SUBMAKEFILES) 61 $(MAKE) -C ../installer/windows CONFIG_DIR=l10ngen ZIP_IN='$(ZIP_OUT)' installer 62 63 langpack: langpack-$(AB_CD) 64 65 # This is a generic target that will make a langpack, repack ZIP (+tarball) 66 # builds, and repack an installer if applicable. It is called from the 67 # tinderbox scripts. Alter it with caution. 68 69 installers-%: IS_LANGUAGE_REPACK=1 70 installers-%: 71 @$(MAKE) clobber-$* 72 @$(MAKE) l10n-$* 73 @$(MAKE) package-langpack-$* 74 @$(MAKE) repackage-zip-$* 75 ifeq (WINNT,$(OS_ARCH)) 76 @$(MAKE) package-win32-installer AB_CD=$* 77 endif 78 @echo 'repackaging done'