|
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 file, |
|
3 # You can obtain one at http://mozilla.org/MPL/2.0/. |
|
4 |
|
5 # Include config.mk explicitly so we can override FINAL_TARGET. |
|
6 include $(topsrcdir)/config/config.mk |
|
7 |
|
8 PREF_JS_EXPORTS = $(srcdir)/prefs.js \ |
|
9 $(NULL) |
|
10 |
|
11 include $(topsrcdir)/config/rules.mk |
|
12 |
|
13 libs:: $(call mkdir_deps,$(FINAL_TARGET)) |
|
14 $(call py_action,buildlist,$(FINAL_TARGET)/chrome.manifest 'resource webapprt ./') |
|
15 |
|
16 GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid) |
|
17 DEFINES += -DGRE_BUILDID=$(GRE_BUILDID) |
|
18 |
|
19 webapprt.ini: application.ini.in $(DEPTH)/config/buildid $(topsrcdir)/config/milestone.txt |
|
20 $(call py_action,preprocessor,$(DEFINES) $< -o $@) |
|
21 |
|
22 libs:: webapprt.ini |
|
23 $(INSTALL) webapprt.ini $(FINAL_TARGET) |
|
24 |
|
25 GARBAGE += webapprt.ini |