- Timestamp:
- Aug 27, 2010 9:01:58 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Makefile.kmk
r31761 r32024 173 173 UserManual.fo) \ 174 174 $(foreach f,$(VBOX_MANUAL_LANGUAGES), $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/, \ 175 docbook-fo-formatcfg.xsl \176 175 docbook-htmlhelp-formatcfg.xsl \ 177 176 docbook-html-one-page-formatcfg.xsl \ 178 177 docbook-html-chunks-formatcfg.xsl \ 179 titlepage-fo.xsl \180 178 titlepage-htmlhelp.xsl )) \ 181 179 $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_MANUAL_PNG_FILES_$(f)))) \ … … 215 213 216 214 # tool locations 217 DOCBOOKPATH ?= $(PATH_DEVTOOLS)/common/DocBook/v1.69.1 218 DOCBOOKDTDPATH ?= $(PATH_DEVTOOLS)/common/docbook-xml/v4.3 215 ifndef VBOX_OSE 216 # use docbook from our tools directory 217 DOCBOOKPATH ?= $(PATH_DEVTOOLS)/common/DocBook/v1.69.1 218 DOCBOOKDTDPATH ?= $(PATH_DEVTOOLS)/common/docbook-xml/v4.3 219 XML_CATALOG ?= $(VBOX_PATH_MANUAL_OUTBASE)/catalog 220 XML_CATALOG_DOCBOOK ?= $(VBOX_PATH_MANUAL_OUTBASE)/docbook 221 else 222 # use docbook of the build host 223 DOCBOOKPATH ?= http://docbook.sourceforge.net/release/xsl/current/ 224 endif 219 225 VBOXMANAGEPATH ?= $(PATH_BIN)/VBoxManage$(SUFF_EXE) 220 226 … … 227 233 PDFLATEX = pdflatex $(PDFLATEX_HALT) -interaction batchmode 228 234 endif 229 230 DOCBOOK_HTMLHELP_XSL_CFG = $(VBOX_PATH_MANUAL_OUTBASE)/docbook-htmlhelp-formatcfg.xsl231 232 XML_CATALOG = $(VBOX_PATH_MANUAL_OUTBASE)/catalog233 XML_CATALOG_DOCBOOK = $(VBOX_PATH_MANUAL_OUTBASE)/docbook234 235 export XML_CATALOG_FILES = $(XML_CATALOG)236 235 237 236 # Windows HTML Help Workshop compiler (stupid thing always returns an error!) … … 350 349 351 350 # Create a catalog file for xsltproc that points to docbook catalog. 351 ifneq ($(XML_CATALOG),) 352 352 $(XML_CATALOG): $(MAKEFILE_CURRENT) | $$(dir $$@) 353 353 $(call MSG_L1,Creating catalog $@) … … 372 372 $(QUIET)$(APPEND) [email protected] ' <public publicId="-//OASIS//ELEMENTS DocBook XML Information Pool V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/dbpoolx.mod"/>' 373 373 $(QUIET)$(APPEND) [email protected] ' <public publicId="-//OASIS//DTD DocBook XML V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/docbookx.dtd"/>' 374 $(QUIET)$(APPEND) [email protected] ' <public publicId="-//OASIS//DTD DocBook XML V4.4//EN" uri="file:///$(DOCBOOKDTDPATH)/docbookx.dtd"/>' 374 375 $(QUIET)$(APPEND) [email protected] ' <public publicId="-//OASIS//ENTITIES DocBook XML Character Entities V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/dbcentx.mod"/>' 375 376 $(QUIET)$(APPEND) [email protected] ' <public publicId="-//OASIS//ENTITIES DocBook XML Notations V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/dbnotnx.mod"/>' … … 380 381 $(QUIET)$(APPEND) [email protected] ' <rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.3" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>' 381 382 $(QUIET)$(APPEND) [email protected] ' <rewriteURI uriStartString="http://www.oasis-open.org/docbook/xml/4.3" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>' 383 $(QUIET)$(APPEND) [email protected] ' <rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.4" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>' 384 $(QUIET)$(APPEND) [email protected] ' <rewriteURI uriStartString="http://www.oasis-open.org/docbook/xml/4.4" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>' 382 385 $(QUIET)$(APPEND) [email protected] ' <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-amsa.ent"/>' 383 386 $(QUIET)$(APPEND) [email protected] ' <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-amsb.ent"/>' … … 401 404 $(QUIET)$(APPEND) [email protected] '</catalog>' 402 405 $(QUIET)$(MV) -f [email protected] $@ 403 404 # intermediate step to do some variable replacement in the XSL configuration 405 $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/docbook-fo-formatcfg.xsl): \ 406 $(VBOX_PATH_MANUAL_SRC)/docbook-fo-formatcfg.xsl $(MAKEFILE_CURRENT) | $$(dir $$@) 407 $(call MSG_L1,Pre-processing $(@F) to $@) 408 $(QUIET)$(RM) -f [email protected] $@ 409 $(QUIET)$(SED) -e 's|\$$DOCBOOKPATH|$(DOCBOOKPATH)|g' \ 410 -e 's|\$$CFGPATH|$(VBOX_PATH_MANUAL_SRC)|g' \ 411 -e 's|\$$TARGETPATH|$(@D)|g' --output [email protected] $< 412 $(QUIET)$(MV) -f [email protected] $@ 406 endif 413 407 414 408 # intermediate step to do some variable replacement in the XSL configuration … … 420 414 -e 's|\$$CFGPATH|$(VBOX_PATH_MANUAL_SRC)|g' \ 421 415 -e 's|\$$TARGETPATH|$(@D)|g' --output [email protected] $< 422 $(QUIET)$(MV) -f [email protected] $@423 424 # Prepare the XSL file for our title page, FO variant.425 $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/titlepage-fo.xsl): \426 $(VBOX_PATH_MANUAL_SRC)/titlepage-fo.xml $(DOCBOOKPATH)/template/titlepage.xsl $(MAKEFILE_CURRENT) | $$(dir $$@)427 $(call MSG_L1,xsltproc $<)428 $(QUIET)$(RM) -f [email protected] $@429 $(QUIET)$(VBOX_XSLTPROC) --xinclude --nonet -o [email protected] $(DOCBOOKPATH)/template/titlepage.xsl $<430 416 $(QUIET)$(MV) -f [email protected] $@ 431 417 … … 485 471 $(VBOX_PATH_MANUAL_OUTBASE)/%/UserManual.tex \ 486 472 $(if $(VBOX_OSE),,$(VBOX_PATH_MANUAL_OUTBASE)/%/ucs.sty) \ 487 $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_MANUAL_PNG_FILES_$(f)))) | $$(dir $$@) 473 $(foreach f,$(VBOX_MANUAL_LANGUAGES),\ 474 $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_MANUAL_PNG_FILES_$(f)))) | $$(dir $$@) 488 475 # PDF generation via Latex: generate the .tex file 489 476 $(call MSG_L1,pdflatex $< (three passes) -> $@) … … 505 492 # pass current language to xsltproc in TARGETLANG variable (extract it from the 506 493 # current directory, should become "de_DE" or the like) 507 $( VBOX_XSLTPROC) $(XSLTPROC_VERBOSE) --xinclude --nonet --stringparam TARGETLANG $(notdir $(@D)) -o [email protected] $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $<494 $(QUIET)$(VBOX_XSLTPROC) $(XSLTPROC_VERBOSE) --xinclude --nonet --stringparam TARGETLANG $(notdir $(@D)) -o [email protected] $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $< 508 495 # for pretty quotes, replace " with `` or '' depending on whether it's at the start of a word; 509 496 # the \QUOTE{} was inserted by docbook2latex.xsl for all quotes _outside_ of screen sections … … 593 580 $(QUIET)$(RM) -f $@ 594 581 $(QUIET)$(MKDIR) -p $(@D) 595 $(QUIET)$(VBOX_XSLTPROC) --xinclude --nonet --output $(@D)/ \ 596 --stringparam htmlhelp.chm $(subst /,\\,$(@D)/../VirtualBox.chm) $(HTMLHELPOPTS) $(@D)/../docbook-htmlhelp-formatcfg.xsl \ 582 $(QUIET)$(if $(XML_CATALOG),XML_CATALOG_FILES=$(XML_CATALOG)) \ 583 $(VBOX_XSLTPROC) --xinclude --nonet --output $(@D)/ \ 584 --stringparam htmlhelp.chm \ 585 $(subst /,\\,$(@D)/../VirtualBox.chm) \ 586 $(HTMLHELPOPTS) $(@D)/../docbook-htmlhelp-formatcfg.xsl \ 597 587 $< 598 588
Note:
See TracChangeset
for help on using the changeset viewer.