From 1c3d95862b98d71aaa45fdf4bfe166397609a108 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 24 Oct 2010 00:15:37 +0100 Subject: Add make dist rule to create releases --- Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ac0a4a0..d1e1a63 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,25 @@ +NAME = readable +VERSION = 0.1 + index.html: doap.ttl README @echo making webpage @cat < webheader.html > $@ @smu < README >> $@ - @echo '

Download Readable
' >> $@ - @echo 'GPG signature

' >> $@ + @echo '

Download Readable
' >> $@ + @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 -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 -- cgit v1.2.3