diff Makefile.gen @ 647:ff94100cfc7c

Commonize README building.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 09 Jan 2015 20:37:15 +0200
parents 5b059a85cab8
children 23d16d9cdf96
line wrap: on
line diff
--- a/Makefile.gen	Fri Jan 09 20:32:38 2015 +0200
+++ b/Makefile.gen	Fri Jan 09 20:37:15 2015 +0200
@@ -57,6 +57,15 @@
 	$(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
 
 #
+# Documentation
+#
+$(DOC):
+	@wget -qO- http://www.tnsp.org/~ccr/nnchat/ | tr '\n' '§' | \
+	sed "s/<.-- BEGIN -->.*<.-- END -->//g;s/<script.*<\/script>//g" | tr '§' '\n' > "$@.tmp"
+	@links -dump "$@.tmp" > $@
+
+
+#
 # Special targets
 #
 clean: