From 767f1ce2dce4159bd7fa4cc0f415285aef723bd9 Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Tue, 14 Aug 2012 16:07:54 +0100 Subject: [PATCH] Add support for building HTML manual pages to the Jamfile --- Jamfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Jamfile b/Jamfile index 99441d9..bd9305c 100644 --- a/Jamfile +++ b/Jamfile @@ -45,4 +45,20 @@ if ! $(PDCLIB_NO_TEST) { Test $(test) : $(testfile) ; RegTest $(regtest) : $(regtestfile) ; } +} + +rule HtmlMan { + DEPENDS htmlman : $(<) ; + DEPENDS $(<) : $(<:D) ; + DEPENDS $(<) : $(>) ; + MkDir $(<:D) ; +} + +actions HtmlMan { + mandoc -Thtml -Oincludes=../3/%I.html -Oman=../%S/%N.html -Ostyle=../style.css $(>) >$(<) +} + +for manpg in [ GLOB man : *.3 ] { + local section = [ SPLIT $(manpg:S) : . ] ; + HtmlMan [ FDirName html $(section) $(manpg:B).html ] : $(manpg) ; } \ No newline at end of file -- 2.40.0