gecko/browser/metro/locales/import/Makefile.in

53 lines
1.5 KiB
Makefile

# 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/.
# desktop specific resources - this defines LOCALE_SRCDIR
relativesrcdir = browser/locales
include $(topsrcdir)/config/config.mk
#########################################
# l10s prefs file
DEFINES += -DAB_CD=$(AB_CD)
# copying firefox-l10n.js over from LOCALE_SRCDIR or browser
PREF_JS_EXPORTS = $(firstword $(wildcard $(LOCALE_SRCDIR)/firefox-l10n.js) \
$(topsrcdir)/$(relativesrcdir)/en-US/firefox-l10n.js )
include $(topsrcdir)/config/rules.mk
#########################################
# Search plugins
# Metro reuses desktop search plugins
libs::
$(MAKE) -C $(DEPTH)/browser/locales searchplugins \
DIST_SUBDIR=$(DIST_SUBDIR) XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
#########################################
# Bookmarks
# Pick up desktop's bookmarks.inc file
ifdef LOCALE_MERGEDIR
vpath book%.inc $(LOCALE_MERGEDIR)/browser/profile
endif
vpath book%.inc $(LOCALE_SRCDIR)/profile
ifdef LOCALE_MERGEDIR
vpath book%.inc @top_srcdir@/$(relativesrcdir)/en-US/profile
endif
bookmarks-src = $(srcdir)/../generic/profile/bookmarks.json.in
# The resulting bookmarks.json will get picked up and packaged by the
# processing of the jar file in the parent directory.
bookmarks: bookmarks.inc
@echo 'Generating: $@'
$(call py_action,preprocessor, \
-I $^ \
-DAB_CD=$(AB_CD) \
$(bookmarks-src) -o ../bookmarks.json)
export:: bookmarks