toolkit/locales/Makefile.in
author Graeme McCutcheon <graememcc_firefox@graeme-online.co.uk>
Thu, 11 Oct 2012 09:17:15 +0100
changeset 112150 eb5c570b8a0bf064a26b46cb6e8274b52b75eaa0
parent 101442 162130598df094e19b044610902abecd403278d3
child 138392 4e24de97618a9f0ddc01ac6112e5b7ef4450dbf9
permissions -rw-r--r--
Bug 724513 - Part 1 - Add StartupCache method for disregarding disk file. r=mwu

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

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@
relativesrcdir = @relativesrcdir@

include $(DEPTH)/config/autoconf.mk

DEFINES += -DAB_CD=$(AB_CD)

XULPPFLAGS += -I$(LOCALE_SRCDIR)/defines.inc

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-$*
ifdef MOZ_PSM
	@$(MAKE) -C ../../security/manager/locales/ libs AB_CD=$* XPI_NAME=locale-$*
endif
	@$(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=$*
ifdef MOZ_PSM
	@$(MAKE) -C $(DEPTH)/security/manager/locales/ chrome AB_CD=$*
endif
	@$(MAKE) chrome AB_CD=$*

ifdef MOZ_UPDATER
libs:: update.locale
	cat $< | 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/MacOS
else
	$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)
endif
endif