From 9490f1f04b5a33be6259017ce5d33cb5c9f9ba11 Mon Sep 17 00:00:00 2001 From: Nick White <git@njw.me.uk> Date: Sun, 10 Jun 2012 18:50:32 +0100 Subject: Add comparison webpage --- Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 08d24aa..ac9dcbd 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ uninstall: cd $(DESTDIR)$(MANPREFIX)/man1 && rm -f $(MAN) clean: - rm -f -- $(BIN) $(OBJ) util.a index.html + rm -f -- $(BIN) $(OBJ) util.a index.html comparison.html dist: mkdir -p $(NAME)-$(VERSION) @@ -127,9 +127,23 @@ index.html: doap.ttl README echo "$(NAME) for mac os x [available from Homebrew](http://mxcl.github.com/homebrew/)" | smu >> $@ #echo "[$(NAME) $(VERSION) windows]($(NAME)-$(VERSION)-win.zip) ([sig]($(NAME)-$(VERSION)-win.zip.sig)) ($(RELDATE))" | smu >> $@ sed '1,5d' < README | smu >> $@ + echo "[comparison with similar programs](comparison)" | smu >> $@ echo '<hr />' >> $@ sh websummary.sh doap.ttl | smu >> $@ echo '</body></html>' >> $@ +comparison.html: comparison.txt + echo making comparison webpage + echo "<!DOCTYPE html><html><head><title>$(NAME)</title>" > $@ + echo '<link rel="alternate" type="text/turtle" title="rdf" href="doap.ttl" />' >> $@ + echo '<style type="text/css">' >> $@ + echo "body {font-family:sans-serif; width:38em; margin:auto; max-width:94%;}" >> $@ + echo "h1 {font-size:1.6em; text-align:center;}" >> $@ + echo "a {text-decoration:none; border-bottom:thin dotted;}" >> $@ + echo "img {margin: auto; border: thin solid; display: block;}" >> $@ + echo "</style></head><body>" >> $@ + smu < comparison.txt >> $@ + echo '</body></html>' >> $@ + .PHONY: all clean install uninstall dist dist-win dist-mac -.SILENT: index.html dist +.SILENT: index.html comparison.html dist -- cgit v1.2.3