summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2010-06-28 19:30:01 +0200
committerAndreas Gruenbacher <agruen@suse.de>2010-06-28 19:30:01 +0200
commit220ae4e9daec573921542e408e489f8d270fffa0 (patch)
treee244e0e0881f5d88d6997477567d10b2b1457c68
parent9d115d7fa254a1e40755993fa4569b8f42829211 (diff)
downloadattr-220ae4e9daec573921542e408e489f8d270fffa0.tar.gz
Ugly hack to convert the man pages into html
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b5c94ab..080daba 100644
--- a/Makefile
+++ b/Makefile
@@ -114,3 +114,10 @@ realclean distclean: clean
.PHONY: tests root-tests ext-tests
tests root-tests ext-tests: default
$(MAKE) -C test/ $@
+
+# HACK: Convert the man pages into html
+html:
+ @for man in $$(find man -name '*.[1-9]'); do \
+ echo $${man%.*}.html ; \
+ groff -man -Thtml -P-h -P-l $$man > $${man%.*}.html; \
+ done