2005-10-29 20:27:43 +04:00
|
|
|
rule Man2Doc
|
|
|
|
{
|
|
|
|
local source = [ FGristFiles $(2) ] ;
|
|
|
|
local binary = $(1) ;
|
|
|
|
|
|
|
|
SEARCH on $(source) = $(SEARCH_SOURCE) ;
|
|
|
|
|
|
|
|
MakeLocate $(binary)
|
|
|
|
: [ FDirName $(HAIKU_DOCUMENTATION_OBJECT_DIR) Shell_Tools ] ;
|
|
|
|
|
2008-04-08 19:18:19 +04:00
|
|
|
Depends $(binary) : $(source) rman ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
LocalDepends doc_files : $(binary) ;
|
2008-04-08 19:18:19 +04:00
|
|
|
Man2Doc1 $(binary) : rman $(source) ;
|
|
|
|
LocalClean clean : $(binary) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
actions Man2Doc1
|
|
|
|
{
|
2008-04-08 19:18:19 +04:00
|
|
|
$(2[1]) -f XML "$(2[2])" > "$(1)" ;
|
2005-10-29 20:27:43 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
rule Man2Docs
|
|
|
|
{
|
2008-04-08 19:18:19 +04:00
|
|
|
# Man2Docs <sources> ;
|
|
|
|
local source ;
|
|
|
|
for source in [ FGristFiles $(1) ]
|
|
|
|
{
|
|
|
|
local target = $(source:S=.xml) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2008-04-08 19:18:19 +04:00
|
|
|
Man2Doc $(target) : $(source) ;
|
|
|
|
}
|
2005-10-29 20:27:43 +04:00
|
|
|
}
|