browser/metro/locales/import/Makefile.in

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:c9c26aaa814b
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 # desktop specific resources - this defines LOCALE_SRCDIR
6 relativesrcdir = browser/locales
7
8 include $(topsrcdir)/config/config.mk
9
10 #########################################
11 # l10s prefs file
12
13 DEFINES += -DAB_CD=$(AB_CD)
14
15 # copying firefox-l10n.js over from LOCALE_SRCDIR or browser
16 PREF_JS_EXPORTS = $(firstword $(wildcard $(LOCALE_SRCDIR)/firefox-l10n.js) \
17 $(topsrcdir)/$(relativesrcdir)/en-US/firefox-l10n.js )
18
19 include $(topsrcdir)/config/rules.mk
20
21 #########################################
22 # Search plugins
23
24 # Metro reuses desktop search plugins
25 libs::
26 $(MAKE) -C $(DEPTH)/browser/locales searchplugins \
27 DIST_SUBDIR=$(DIST_SUBDIR) XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
28
29 #########################################
30 # Bookmarks
31
32 # Pick up desktop's bookmarks.inc file
33 ifdef LOCALE_MERGEDIR
34 vpath book%.inc $(LOCALE_MERGEDIR)/browser/profile
35 endif
36 vpath book%.inc $(LOCALE_SRCDIR)/profile
37 ifdef LOCALE_MERGEDIR
38 vpath book%.inc @top_srcdir@/$(relativesrcdir)/en-US/profile
39 endif
40
41 bookmarks-src = $(srcdir)/../generic/profile/bookmarks.json.in
42
43 # The resulting bookmarks.json will get picked up and packaged by the
44 # processing of the jar file in the parent directory.
45 bookmarks: bookmarks.inc
46 @echo 'Generating: $@'
47 $(call py_action,preprocessor, \
48 -I $^ \
49 -DAB_CD=$(AB_CD) \
50 $(bookmarks-src) -o ../bookmarks.json)
51
52 export:: bookmarks

mercurial