summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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