NAME = readable VERSION = 0.2 index.html: doap.ttl README @echo making webpage @cat < webheader.html > $@ @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 '' >> $@ dist: @mkdir -p $(NAME)-$(VERSION) @cp readable.js COPYING INSTALL README $(NAME)-$(VERSION) @tar -c $(NAME)-$(VERSION) | bzip2 -c > $(NAME)-$(VERSION).tar.bz2 @gpg -b < $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).tar.bz2.sig @rm -rf $(NAME)-$(VERSION) @ln -sf $(NAME)-$(VERSION).tar.bz2 latest.tar.bz2 @ln -sf $(NAME)-$(VERSION).tar.bz2.sig latest.tar.bz2.sig @echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig xpi: readable.js gecko/install.rdf gecko/chrome.manifest gecko/chrome/content/readable.xul gecko/chrome/content/icon.png @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/chrome/content/icon.png 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 crx: readable.js chromium/icon.png chromium/manifest.json chromium/background.html @rm -rf chromium-build @mkdir chromium-build @cp COPYING readable.js chromium/icon.png chromium/background.html chromium-build/ @sed "s/VERSION/$(VERSION)/g" < chromium/manifest.json > chromium-build/manifest.json @chromium-browser --pack-extension=chromium-build @mv chromium-build.crx $(NAME)-$(VERSION).crx @rm -r chromium-build chromium-build.pem @gpg -b < $(NAME)-$(VERSION).crx > $(NAME)-$(VERSION).crx.sig @echo $(NAME)-$(VERSION).crx $(NAME)-$(VERSION).crx.sig .PHONY: dist xpi crx .SUFFIXES: ttl html