mobile/android/app/profile/extensions/Makefile.in
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 20 Sep 2012 09:52:12 +0200
changeset 107617 61d680a20cea0c0a41b9041a6741c53f77cfd1c6
parent 101442 162130598df094e19b044610902abecd403278d3
permissions -rw-r--r--
Bug 792347 - Fix PathifyURI to properly return a resource/app path for resource://app/ urls when the application is in a subdirectory of the GRE. r=mwu

# 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/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

EXTENSIONS_DIR = $(call core_abspath,$(DIST))/bin/extensions

include $(DEPTH)/config/autoconf.mk

include $(topsrcdir)/config/rules.mk

ifneq (,$(filter nightly aurora beta,$(MOZ_UPDATE_CHANNEL)))
EXTENSIONS = \
  $(NULL)

define _INSTALL_EXTENSION
$(NSINSTALL) -D $(dir) && \
  $(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $(srcdir)/$(dir)/install.rdf.in > $(dir)/install.rdf && \
  cd $(dir) && \
  $(ZIP) -r9XD $(EXTENSIONS_DIR)/$(dir).xpi install.rdf && \
  cd $(srcdir)/$(dir) && \
  $(ZIP) -r9XD $(EXTENSIONS_DIR)/$(dir).xpi * -x install.rdf.in

endef # do not remove the blank line!

libs::
	$(NSINSTALL) -D $(EXTENSIONS_DIR)
	$(foreach dir,$(EXTENSIONS),$(_INSTALL_EXTENSION))
endif