From 089c905ebd7e365791112f8a9f1f2a44de5987a1 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 24 Oct 2010 23:06:08 +0100 Subject: Simplify and update webpage creation --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e3cc21b..a97a441 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ OBJ = $(SRC:.c=.o) MAN = $(TARGETS:=.1) HEADERS = spout.h config.def.h font.h sintable.h -WEB = web/index.html +WEB = index.html include config.mk @@ -28,13 +28,17 @@ config.h: @echo creating $@ from config.def.h @cp config.def.h $@ -$(WEB): web/index.txt web/header.html web/footer.html web/doap.ttl +$(WEB): README webheader.html doap.ttl @echo making webpage - @cat web/header.html > $@ - @sed 's/VERSION/$(VERSION)/g' < web/index.txt | smu >> $@ + @cat webheader.html > $@ + @sed 5q < README | smu >> $@ + @echo '![Screenshot of Spout](screenshot.png)' | smu >> $@ + @echo '

Download Spout $(VERSION)
' >> $@ + @echo 'GPG signature

' >> $@ + @sed '1,6d' < README | smu >> $@ @echo '
' >> $@ - @sh web/summary.sh web/doap.ttl | smu >> $@ - @cat web/footer.html >> $@ + @sh summary.sh doap.ttl | smu >> $@ + @echo '' >> $@ clean: rm -f -- $(TARGETS) $(WEB) $(OBJ) $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig -- cgit v1.2.3