summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-02 19:38:27 +0000
committerNick White <git@njw.me.uk>2010-11-02 19:38:27 +0000
commite949e8ce1de0080d176e0cf7815a6cf3e2d9d8cb (patch)
tree2b6f1816299fd94a88c8d460624a533bab6089d9 /Makefile
parent8c1ed79ecd61890c63069bb2d5a852d4815fefbf (diff)
Improve xpi make rule, and add firefox link to webpage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index a892469..9b65ba2 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@ index.html: doap.ttl README
@smu < README >> $@
@echo '<h3><a href="$(NAME)-$(VERSION).tar.bz2">Download Readable $(VERSION)</a><br />' >> $@
@echo '<a href="$(NAME)-$(VERSION).tar.bz2.sig">GPG signature</a></h3>' >> $@
+ @echo '<h3><a href="$(NAME)-$(VERSION).xpi">Readable $(VERSION) for Firefox</a><br />' >> $@
+ @echo '<a href="$(NAME)-$(VERSION).xpi.sig">GPG signature</a></h3>' >> $@
@echo '<hr />' >> $@
@sh summary.sh doap.ttl | smu >> $@
@echo '</body></html>' >> $@
@@ -22,14 +24,16 @@ dist:
@echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig
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 COPYING 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
+ @rm -rf $(NAME)-$(VERSION).xpi gecko-build
+ @mkdir -p gecko-build/chrome/content
+ @cp COPYING 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 ../$(NAME)-$(VERSION).xpi . 1>/dev/null
+ @gpg -b < $(NAME)-$(VERSION).xpi > $(NAME)-$(VERSION).xpi.sig
+ @rm -rf gecko-build
+ @echo $(NAME)-$(VERSION).xpi $(NAME)-$(VERSION).xpi.sig
.PHONY: dist xpi
.SUFFIXES: ttl html