diff options
author | Nick White <git@njw.me.uk> | 2010-10-24 00:15:37 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-10-24 00:15:37 +0100 |
commit | 1c3d95862b98d71aaa45fdf4bfe166397609a108 (patch) | |
tree | 5c81b70229e7f763130a135715158175be6205b7 /Makefile | |
parent | 75645602dd70f079ccf550bb5e90dffc21693429 (diff) |
Add make dist rule to create releases
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -1,11 +1,25 @@ +NAME = readable +VERSION = 0.1 + index.html: doap.ttl README @echo making webpage @cat < webheader.html > $@ @smu < README >> $@ - @echo '<h3><a href="latest.tar.gz">Download Readable</a><br />' >> $@ - @echo '<a href="latest.tar.gz.sig">GPG signature</a></h3>' >> $@ + @echo '<h3><a href="latest.tar.bz2">Download Readable</a><br />' >> $@ + @echo '<a href="latest.tar.bz2.sig">GPG signature</a></h3>' >> $@ @echo '<hr />' >> $@ @sh summary.sh doap.ttl | smu >> $@ @echo '</body></html>' >> $@ +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 -s $(NAME)-$(VERSION).tar.bz2 latest.tar.bz2 + @ln -s $(NAME)-$(VERSION).tar.bz2.sig latest.tar.bz2.sig + @echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig + +.PHONY: dist .SUFFIXES: ttl html |