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/.
|
2004-11-24 18:55:31 +03:00
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2005-01-26 16:33:53 +03:00
|
|
|
relativesrcdir = toolkit/locales
|
2004-11-24 18:55:31 +03:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
DEFINES += -DAB_CD=$(AB_CD)
|
|
|
|
|
2005-01-26 16:33:53 +03:00
|
|
|
XULPPFLAGS += -I$(LOCALE_SRCDIR)/defines.inc
|
2004-11-24 18:55:31 +03:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2005-04-21 03:10:56 +04:00
|
|
|
|
2008-10-20 23:57:47 +04:00
|
|
|
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
|
|
|
|
|
2005-04-21 03:10:56 +04:00
|
|
|
libs-%:
|
|
|
|
@$(MAKE) -C ../../netwerk/locales/ libs AB_CD=$* XPI_NAME=locale-$*
|
|
|
|
@$(MAKE) -C ../../dom/locales/ libs AB_CD=$* XPI_NAME=locale-$*
|
2006-07-01 03:09:15 +04:00
|
|
|
ifdef MOZ_PSM
|
2005-04-21 03:10:56 +04:00
|
|
|
@$(MAKE) -C ../../security/manager/locales/ libs AB_CD=$* XPI_NAME=locale-$*
|
2006-07-01 03:09:15 +04:00
|
|
|
endif
|
2005-04-21 03:10:56 +04:00
|
|
|
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$*
|
2007-10-10 22:49:04 +04:00
|
|
|
|
2009-10-08 14:19:25 +04:00
|
|
|
# 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=$*
|
2009-05-21 22:02:08 +04:00
|
|
|
|
|
|
|
ifdef MOZ_UPDATER
|
|
|
|
libs:: update.locale
|
|
|
|
cat $< | sed -e "s/%AB_CD%/$(AB_CD)/" > $(FINAL_TARGET)/update.locale
|
|
|
|
endif
|
|
|
|
|
2007-10-10 22:49:04 +04:00
|
|
|
ifdef MOZ_CRASHREPORTER
|
2008-10-20 23:57:47 +04:00
|
|
|
libs:: crashreporter.ini
|
2009-09-19 06:59:53 +04:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2007-10-10 22:49:04 +04:00
|
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/crashreporter.app/Contents/MacOS
|
|
|
|
else
|
|
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)
|
|
|
|
endif
|
|
|
|
endif
|