Merge m-c to fx-team.
[gecko.git] / webapprt / Makefile.in
blob07fec1621d395f049ec112ebe9b0e802e2fae73a
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/.
5 # Include config.mk explicitly so we can override FINAL_TARGET.
6 include $(topsrcdir)/config/config.mk
8 # Place webapprt resources in a separate app dir
9 DIST_SUBDIR = webapprt
11 PREF_JS_EXPORTS = $(srcdir)/prefs.js \
12 $(NULL)
14 include $(topsrcdir)/config/rules.mk
16 ifdef MOZ_DEBUG
17 DEFINES += -DMOZ_DEBUG=1
18 endif
20 ifdef MOZILLA_OFFICIAL
21 DEFINES += -DMOZILLA_OFFICIAL
22 endif
24 libs:: $(call mkdir_deps,$(FINAL_TARGET))
25 $(PYTHON) $(MOZILLA_DIR)/config/buildlist.py $(FINAL_TARGET)/chrome.manifest "resource webapprt ./"
27 GRE_MILESTONE := $(shell tail -n 1 $(topsrcdir)/config/milestone.txt 2>/dev/null || tail -1 $(topsrcdir)/config/milestone.txt)
28 GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid)
29 DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE) \
30 -DGRE_BUILDID=$(GRE_BUILDID) \
31 -DMOZ_APP_BASENAME=$(MOZ_APP_BASENAME) \
32 $(NULL)
34 webapprt.ini: application.ini.in $(DEPTH)/config/buildid $(topsrcdir)/config/milestone.txt
35 $(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $< > $@
37 libs:: webapprt.ini
38 $(INSTALL) webapprt.ini $(FINAL_TARGET)
40 GARBAGE += webapprt.ini