about summary refs log tree commit homepage
path: root/Makefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-07 21:33:31 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-07 21:41:17 -0700
commitfcab3eaea57a25185d88b529ed1620e67c9c2080 (patch)
tree1fef9a29136cdd4c3e483262f6284af6a7a849c7 /Makefile
parent6e60f84bb1b7b4814301d0e21c82e2b4a5a2634a (diff)
downloadpcu-fcab3eaea57a25185d88b529ed1620e67c9c2080.tar.gz
Documentation updates
* Generate homepage using the README
* More git repository information
* Remove references to non-existent pcu(7) manpage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 64b0154..d846d32 100644
--- a/Makefile
+++ b/Makefile
@@ -62,4 +62,10 @@ clean:
         $(RM) $(PCU_BIN) $(DISTNAME).tar.gz* GIT-VERSION-FILE
         $(RM) $(man1)
 
+index.html: title = $(shell sed -ne 1p < $<)
+index.html: README
+        markdown $< | (tidy -q 2>/dev/null || true) | \
+          sed 's,<title></title>,<title>$(title)</title>,' > $@+
+        mv $@+ $@
+
 .PHONY: .FORCE-GIT-VERSION-FILE install install-man man