toolkit/locales/Makefile.in
author Mike Hommey <mh+mozilla@glandium.org>
Fri, 30 Oct 2015 11:31:14 +0900
changeset 306652 8f3b9c2b450c44d6835e88bf991fdf492c0185b0
parent 305276 eb607c348695ec27e0f8d2ab97aa7f0e2d9b364c
child 310949 57bc24e6baeb2f588e736b5bf7e5376284a73f47
permissions -rw-r--r--
Bug 1222323 - Avoid passing extra defines to the compiler from config.mk. r=gps C/C++ code should not be relying on XPI_NAME or AB_CD being defined, so moving them out works.

# 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/.

include $(topsrcdir)/config/rules.mk

ifdef LOCALE_MERGEDIR
vpath crashreporter.% $(LOCALE_MERGEDIR)/toolkit/crashreporter
endif
vpath crashreporter.% $(LOCALE_SRCDIR)/crashreporter
ifdef LOCALE_MERGEDIR
vpath crashreporter.% @srcdir@/en-US/crashreporter
endif

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-$*
	@$(MAKE) -C ../../devtools/shared/locales/ libs AB_CD=$* XPI_NAME=locale-$*
	@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$*

# target to be used by multi-locale l10n builds, just add this locale
# like regular chrome code
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=$*

ifdef MOZ_UPDATER
libs:: update.locale
	sed -e 's/%AB_CD%/$(AB_CD)/' $< > $(FINAL_TARGET)/update.locale
endif

ifdef MOZ_CRASHREPORTER
libs:: crashreporter.ini
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
	$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/crashreporter.app/Contents/Resources
else
	$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)
endif
endif