aboutsummaryrefslogtreecommitdiffstats
path: root/xul-ext/Makefile
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-03-16 02:05:26 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-03-16 02:57:15 +0100
commit3750346a8e8736c726e6ad8fcb8ad82d81975fbc (patch)
tree9fdce67616fee40662009f5e2ed70c632f2a133b /xul-ext/Makefile
parent64a74af9c1bc79cdc1aaeb6e160eedf80aaf97dd (diff)
XUL extension
Diffstat (limited to 'xul-ext/Makefile')
-rw-r--r--xul-ext/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/xul-ext/Makefile b/xul-ext/Makefile
new file mode 100644
index 0000000..d44f648
--- /dev/null
+++ b/xul-ext/Makefile
@@ -0,0 +1,11 @@
+XPI_NAME:=$(shell sed -nr '/.*<em:id>([^<]+)<\/em:id>.*/ {s//..\/\1.xpi/p;q}' install.rdf)
+
+all: $(XPI_NAME)
+
+$(XPI_NAME): chrome.manifest install.rdf COPYING $(shell find chrome/ -type f)
+ zip $@ $^
+
+clean:
+ rm -f $(XPI_NAME)
+
+.PHONY: all clean