From d1b5c8a0bc68e58529cc3aa184e9ec46d85a1afe Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Fri, 17 Jan 2003 07:48:52 +0000 Subject: [PATCH] Add rules to generate man-pages and html version of man-pages. (Logical change 1.35) --- doc/Makefile.am | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/Makefile.am b/doc/Makefile.am index e69de29b..7b4c4dfa 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -0,0 +1,17 @@ +# man pages that go into section 3: +man3_MANS = libunwind.man + +EXTRA_DIST = NOTES libunwind.trans libunwind.tex $(man3_MANS) + +L2M = latex2man +L2M_CMD = $(L2M) -t $(srcdir)/libunwind.trans +L2H_CMD = $(L2M) -H -t $(srcdir)/libunwind.trans + +.tex.man: + $(L2M_CMD) $< $@ + +html: + for n in $(man3_MANS); do \ + page=`basename $$n .man`; \ + $(L2H_CMD) $(srcdir)/$$page.tex $$page.php; \ + done