mobile/android/app/profile/extensions/Makefile.in
author Mike Hommey <mh+mozilla@glandium.org>
Sat, 04 Aug 2012 20:26:44 +0200
changeset 101804 162130598df094e19b044610902abecd403278d3
parent 101758 1fc17369c9a6c85dfd5724b9b6ecc073f0b3cc6c
permissions -rw-r--r--
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted

# 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