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 ++++++++++++++++-- TODO | 1 - 2 files changed, 16 insertions(+), 3 deletions(-) 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 diff --git a/TODO b/TODO index 2df90e5..6c57edd 100644 --- a/TODO +++ b/TODO @@ -1,2 +1 @@ -create makefile rule for packaging releases it'd be nice to be able to run tests -- cgit v1.2.3