From e949e8ce1de0080d176e0cf7815a6cf3e2d9d8cb Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 2 Nov 2010 19:38:27 +0000 Subject: Improve xpi make rule, and add firefox link to webpage --- Makefile | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'Makefile') 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 '

Download Readable $(VERSION)
' >> $@ @echo 'GPG signature

' >> $@ + @echo '

Readable $(VERSION) for Firefox
' >> $@ + @echo 'GPG signature

' >> $@ @echo '
' >> $@ @sh summary.sh doap.ttl | smu >> $@ @echo '' >> $@ @@ -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 -- cgit v1.2.3