Test $(test) : $(testfile) ;\r
RegTest $(regtest) : $(regtestfile) ;\r
}\r
+}\r
+\r
+rule HtmlMan { \r
+ DEPENDS htmlman : $(<) ;\r
+ DEPENDS $(<) : $(<:D) ;\r
+ DEPENDS $(<) : $(>) ;\r
+ MkDir $(<:D) ;\r
+}\r
+\r
+actions HtmlMan {\r
+ mandoc -Thtml -Oincludes=../3/%I.html -Oman=../%S/%N.html -Ostyle=../style.css $(>) >$(<)\r
+}\r
+\r
+for manpg in [ GLOB man : *.3 ] {\r
+ local section = [ SPLIT $(manpg:S) : . ] ;\r
+ HtmlMan [ FDirName html $(section) $(manpg:B).html ] : $(manpg) ;\r
}
\ No newline at end of file