summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSasa Bodiroza <jazzva@gmail.com>2008-07-08 20:21:59 +0000
committerSasa Bodiroza <jazzva@gmail.com>2008-07-08 20:21:59 +0000
commit39e2dba46bf2a936c7eccf3084510b0027974f44 (patch)
tree91492cbe47581e5f3dccc0b3e64d07793cbd637f /src
parent9dc3b8381ff02990051c8310fabddd221ca1482e (diff)
* Add default build command to src/xpi.mk.
* Document changes in debian/changelog, and README.
Diffstat (limited to 'src')
-rw-r--r--src/xpi.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xpi.mk b/src/xpi.mk
index 8f2a5ac..5fb3583 100644
--- a/src/xpi.mk
+++ b/src/xpi.mk
@@ -51,6 +51,8 @@
MOZ_XPI_MOZILLA_DIRS ?= firefox-addons firefox
+MOZ_XPI_BUILD_COMMAND ?= rm -f `pwd`/*.xpi ; med-xpi-pack `pwd` $(MOZ_EXTENSION_PKG).xpi;
+
TEMPDIR := $(shell rm -rf temp-xpi-*; mktemp -d temp-xpi-XXXXXXXX)
ifneq (,$(MOZ_XPI_FILE))
@@ -74,11 +76,8 @@ endif
install/$(MOZ_EXTENSION_PKG):: xpi-install
-# clean build and remove all .xpi in top-level if a MOZ_XPI_BUILD_COMMAND is defined
+# clean build
clean:: xpi-clean
-ifneq (,$(MOZ_XPI_BUILD_COMMAND))
- rm -f *.xpi
-endif
# ### general helper targets
stamp-unzip-%: