mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
# 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 = \
|
|
feedback@mobile.mozilla.org \
|
|
$(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
|