X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Jamfile;h=bd9305c5e807a2e9d5b4d1b7554a79b699a5f3bf;hb=97004773c8d0bb83776d17a3b92a40309f5492bc;hp=971e21da8f80a2727673d8e7893a2e36651fe98f;hpb=1cc4363093c919f79eafac209bb5c41548d3f88f;p=pdclib diff --git a/Jamfile b/Jamfile index 971e21d..bd9305c 100644 --- a/Jamfile +++ b/Jamfile @@ -1,4 +1,8 @@ SubDir PDCLIB_TOP ; +if $(PDCLIB_PLATFORM) { + SubInclude PDCLIB_TOP platform $(PDCLIB_PLATFORM) ; + SubDir PDCLIB_TOP ; +} PDCLibConfig ; PDCLIB_SOURCES = [ RecursiveGlob $(PDCLIB_TOP) : [ FDirName functions ] : *.c ] ; @@ -25,11 +29,12 @@ if ! $(PDCLIB_NO_TEST) { Object $(testfile).o : $(file) ; Object $(regtestfile).o : $(file) ; - MainFromObjects $(testfile) : $(testfile).o ; + MainFromObjects $(testfile) : $(testfile).o $(CRT0) ; MainFromObjects $(regtestfile) : $(regtestfile).o ; CCFLAGS on $(testfile).o += -DTEST $(PDCLIB_TEST_CCFLAGS) ; CCFLAGS on $(regtestfile).o += -DTEST -DREGTEST $(PDCLIB_REGTEST_CCFLAGS) ; + CCHDRS on $(regtestfile).o = [ FIncludes [ FDirName testing ] ] ; LINKFLAGS on $(testfile)$(SUFEXE) += $(PDCLIB_TEST_LINKFLAGS) ; LINKFLAGS on $(regtestfile)$(SUFEXE) += $(PDCLIB_REGTEST_LINKFLAGS) ; @@ -40,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