about summary refs log tree commit homepage
path: root/Makefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-07 21:50:02 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-08 01:35:12 -0700
commite024be4e45fe08c83b3132bd227f3065695c231d (patch)
tree2203e6d2dbe04b0379ee0eedce3c62127311cb35 /Makefile
parent47a36ae531f4355bed1723b6edf902bf8db8292a (diff)
downloadlibnodelay-e024be4e45fe08c83b3132bd227f3065695c231d.tar.gz
Fixup README to use as a homepage v0.0.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7569e63..4e44277 100644
--- a/Makefile
+++ b/Makefile
@@ -32,3 +32,9 @@ test: libnodelay.so
         grep setsockopt.*TCP_NODELAY test-server.out
         grep setsockopt.*TCP_NODELAY test-client.out
         $(RM) test-server.out test-client.out
+
+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 $@+ $@