haiku/build/jam/DocumentationRules
Augustin Cavalier 7d6915b4d0 Interface Guidelines: migrate to docs/, use DocBookCSS.
DocBookCSS is a mostly-pure-CSS2 implementation of the DocBook standard.
Unlike DocBookXSL which relies on transforming the XML, it utilizes the
XML-styling features of modern web browsers to display the DocBook.

Its appearance still is a long way from the Haiku Book and Userguide, but
it looks (mostly) the same as the old DocBookXSL so we can stop using that.
Eventually we just need to make DocBookCSS use our styling.
2015-02-12 17:08:04 -05:00

34 lines
590 B
Plaintext

rule Man2Doc
{
local source = [ FGristFiles $(2) ] ;
local binary = $(1) ;
SEARCH on $(source) = $(SEARCH_SOURCE) ;
MakeLocate $(binary)
: [ FDirName $(HAIKU_DOCUMENTATION_OBJECT_DIR) Shell_Tools ] ;
Depends $(binary) : $(source) rman ;
LocalDepends doc_files : $(binary) ;
Man2Doc1 $(binary) : rman $(source) ;
LocalClean clean : $(binary) ;
}
actions Man2Doc1
{
$(2[1]) -f XML "$(2[2])" > "$(1)" ;
}
rule Man2Docs
{
# Man2Docs <sources> ;
local source ;
for source in [ FGristFiles $(1) ]
{
local target = $(source:S=.xml) ;
Man2Doc $(target) : $(source) ;
}
}