diff options
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 |