summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-02 18:33:52 +0000
committerNick White <git@njw.me.uk>2010-11-02 18:33:52 +0000
commite2c3998350430dd529a82bcb679ac53c5161196a (patch)
treed59e65d5f26030694c7c87c442c38f7c6103b225 /Makefile
parent2cee16336a4ce756cac166adccbb40a41122b6f4 (diff)
Add working firefox extension
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f29dfb1..7ae052b 100644
--- a/Makefile
+++ b/Makefile
@@ -21,5 +21,15 @@ dist:
@ln -sf $(NAME)-$(VERSION).tar.bz2.sig latest.tar.bz2.sig
@echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig
-.PHONY: dist
+xpi: readable.js gecko/install.rdf gecko/chrome.manifest gecko/chrome/content/readable.xul
+ rm -f readable-$(VERSION).xpi
+ mkdir -p gecko-build/chrome/content
+ cp gecko/chrome.manifest gecko-build/
+ cp gecko/chrome/content/readable.xul gecko-build/chrome/content/
+ cp readable.js gecko-build/chrome/content/readable.js
+ sed "s/VERSION/$(VERSION)/g" < gecko/install.rdf > gecko-build/install.rdf
+ cd gecko-build; zip -r ../readable-$(VERSION).xpi .
+ rm -rf gecko-build
+
+.PHONY: dist xpi
.SUFFIXES: ttl html