multiple chunks handling

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12733 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2005-05-19 15:38:29 +00:00
parent d1783112af
commit 7a2b05c5ad
3 changed files with 31 additions and 15 deletions
+23 -7
View File
@@ -5,22 +5,38 @@ XSLTPROC ?= xsltproc ;
rule Doc2HTML
{
local source = [ FGristFiles $(1) ] ;
local target = $(1:S=.html) ;
local target = $(2) ;
local xslsheet = $(3) ;
local basedir = [ FDirName $(OBOS_DISTRO_TARGET) beos documentation $(4) ] ;
local paths = $(5) ;
local options = $(6) ;
if ! $(target) {
target = $(1:S=.html) ;
}
SEARCH on $(source) = $(SEARCH_SOURCE) ;
MakeLocate $(target) : [ FDirName $(OBOS_DISTRO_TARGET) beos documentation $(DOC_LOCATION) ] ;
MakeLocate $(target) : $(basedir) ;
if $(2) {
XSLBASEDIR on $(target) = "-stringparam base.dir \""$(basedir)"/\"" ;
}
XSLSHEET on $(target) = $(xslsheet) ;
XSLOPTIONS on $(target) = $(options) ;
if ! $(2) {
XSLOUTPUT on $(target) = "-o \""$(target)"\"" ;
}
Depends $(target) : $(source) ;
LocalDepends doc_files : $(target) ;
XSLPROCPATHS on $(target) = "-path \""$(XSLPATHS:J=\ )"\"" ;
Depends $(target) : $(source) ;
LocalDepends doc_files : $(target) ;
XSLPROCPATHS on $(target) = "-path \""$(paths:J=\ )"\"" ;
Doc2HTML1 $(target) : $(source) ;
LocalClean clean : $(target) ;
LocalClean clean : $(target) ;
}
actions Doc2HTML1
{
$(XSLTPROC) -xinclude $(XSLPROCPATHS) -o "$(1)" $(HTMLXSLSHEET) $(2) ;
$(XSLTPROC) -xinclude $(XSLPROCPATHS) $(XSLBASEDIR) $(XSLOPTIONS) $(XSLOUTPUT) $(XSLSHEET) $(2) ;
}
SEARCH on <src!documentation>license.xml = [ FDirName $(OBOS_TOP) src documentation ] ;
+3 -4
View File
@@ -1,11 +1,10 @@
SubDir OBOS_TOP src documentation haiku_book ;
XSLPATHS = ;
HTMLXSLSHEET = http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl ;
DOC_LOCATION = Haiku\ Book ;
Doc2HTML
Haiku_Book.xml
:
: http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
: Haiku_Book
;
local chapter_files = appkit.xml
+5 -4
View File
@@ -1,11 +1,12 @@
SubDir OBOS_TOP src documentation shell_tools ;
XSLPATHS = [ FDirName $(OBOS_OBJECT_TARGET) documentation Shell_Tools ] [ FDirName $(OBOS_TOP) src bin coreutils man ] ;
HTMLXSLSHEET = http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl ;
DOC_LOCATION = Shell\ Tools ;
Doc2HTML
Shell_Tools-Guide.xml
: index.html
: http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
: Shell_Tools
: [ FDirName $(OBOS_OBJECT_TARGET) documentation Shell_Tools ] [ FDirName $(OBOS_TOP) src bin coreutils man ]
: -stringparam use.id.as.filename 1
;
Includes [ FGristFiles Shell_Tools-Guide.xml ] : <src!bin!coreutils!man>coreutils.xml <src!documentation>license.xml ;