Makefile.kmk revision 1cdc7c917dcbc94f134a0201917a325960bde133
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# $Id$
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync## @file
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Sub-Makefile for the VBox User Manual.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Copyright (C) 2006-2007 Oracle Corporation
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
452fd0f33b11dc60aad994e3001c74415179d401vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
452fd0f33b11dc60aad994e3001c74415179d401vboxsync# available from http://www.virtualbox.org. This file is free software;
452fd0f33b11dc60aad994e3001c74415179d401vboxsync# you can redistribute it and/or modify it under the terms of the GNU
452fd0f33b11dc60aad994e3001c74415179d401vboxsync# General Public License (GPL) as published by the Free Software
452fd0f33b11dc60aad994e3001c74415179d401vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
452fd0f33b11dc60aad994e3001c74415179d401vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
452fd0f33b11dc60aad994e3001c74415179d401vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# This slightly messy makefile transforms the DocBook XML source for the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# user manual into presentation output. We support two targets:
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# -- UserManual.pdf, generated by LaTex
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# -- VirtualBox.chm
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Both files end up in PATH_BIN.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Both targets indirectly depend on the XML files in this directory;
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# "indirectly" because we first copy them to PATH_TARGET and hack them
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# up a bit for variable substitution and such (see below).
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# The toolchains are roughly like this:
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# -- PDF file via Apache FOP: pre-process the XML files in PATH_TARGET,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# then create a .FO file (another XML format for "formatted objects")
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# via xsltproc, then feed the .FO file to Apache FOP to create the PDF.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# -- PDF file via LaTeX: pre-process the XML files in PATH_TARGET, then
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# run our custom "dblatex" perl script on UserManual.xml, which parses
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# the XML (using the Perl SAX parsers) and dumps a matching latex file
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# to UserManual.tex. This is then regularly processed by pdflatex to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# generate PDF.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# -- CHM file: again, pre-process the XML files in PATH_TARGET, then use
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# xsltproc to create a .HHP file for the Microsoft Help Compiler, then
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# feed that file to it.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncSUB_DEPTH = ../..
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Globals
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncVBOX_PATH_MANUAL_SRC := $(PATH_SUB_CURRENT)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncVBOX_PATH_MANUAL_OUTBASE := $(PATH_TARGET)/manual
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncBLDDIRS += $(VBOX_PATH_MANUAL_OUTBASE)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Main targets
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncifdef VBOX_WITH_DOCS
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync # Default language
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_MANUAL_LANGUAGES = en_US
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync ifdef VBOX_ONLY_SDK
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync ## @todo make this an install target, drop the BLDDIRS.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync OTHERS += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_SDK)/docs/SDKRef.pdf
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync BLDDIRS += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_SDK)/docs
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync endif
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync ifdef VBOX_WITH_DOCS_CHM
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_PATH_BIN_CHM = $(PATH_BIN)/VirtualBox.chm
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync else
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_PATH_BIN_CHM =
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync # do not build
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync endif # !VBOX_WITH_DOCS_CHM
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync ifndef VBOX_ONLY_SDK
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_MANUAL_PACK += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(PATH_BIN)/UserManual.pdf \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_BIN_CHM)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync OTHERS += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(PATH_BIN)/UserManual.pdf
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync OTHERS.win += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_BIN_CHM)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync OTHERS.linux += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_BIN_CHM)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync OTHERS += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_BIN)/UserManual_$(f).pdf)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync ifdef VBOX_WITH_DOCS_CHM
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync OTHERS.win += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_BIN)/VirtualBox_$(f).chm)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync OTHERS.linux += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_BIN)/VirtualBox_$(f).chm)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync endif
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync endif # !VBOX_ONLY_SDK
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync ifdef VBOX_ONLY_DOCS
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync PACKING += $(PATH_BIN)/VBoxDocumentation.zip
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync endif
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_MANUAL_LANGUAGES += $(VBOX_MANUAL_ADD_LANGUAGES)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_MANUAL_XML_CHANGELOG = \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_ChangeLogImpl.xml
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_MANUAL_XML_FILES = \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync UserManual.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_AdvancedTopics.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_BasicConcepts.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_ChangeLog.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_Glossary.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_Frontends.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_Installation.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_GuestAdditions.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_Introduction.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_KnownIssues.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_PrivacyPolicy.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_Technical.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_ThirdParty.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_Troubleshooting.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_VBoxManage.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_VirtualBoxAPI.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_Storage.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user_Networking.xml
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_SDKREF_XML_FILES = \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync SDKRef.xml
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync # Wildcard the images path for every supported language
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES), \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(eval VBOX_MANUAL_PNG_FILES_$$(f) := $$(patsubst $$(VBOX_PATH_MANUAL_SRC)/$$(f)/%,%,$$(wildcard $$(VBOX_PATH_MANUAL_SRC)/$$(f)/images/*.png))))
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_MANUAL_TEX_UNICODE_FILES = \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(wildcard $(VBOX_PATH_MANUAL_SRC)/texfiles/unicode/*)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_MANUAL_LATEX_FILES_TARGET = \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix UserManual.,aux log out toc tex)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_SDKREF_LATEX_FILES_TARGET = \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix SDKRef.,aux log out toc tex)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync BLDDIRS += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/,\
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_MANUAL_LANGUAGES) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addsuffix /images, $(VBOX_MANUAL_LANGUAGES)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addsuffix /html-single, $(VBOX_MANUAL_LANGUAGES)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addsuffix /html-chunks, $(VBOX_MANUAL_LANGUAGES)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addsuffix /HTMLHelp, $(VBOX_MANUAL_LANGUAGES)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addsuffix /HTMLHelp/images, $(VBOX_MANUAL_LANGUAGES)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync )
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync ifdef VBOX_WITH_DOCS_CHM
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBOX_MANUAL_PACK += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_BIN)/UserManual_$(f).pdf $(PATH_BIN)/VirtualBox_$(f).chm)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync endif
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync OTHER_CLEAN += \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES), $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_MANUAL_XML_FILES))) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,en_US, $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_SDKREF_XML_FILES))) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES), $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_MANUAL_LATEX_FILES_TARGET))) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,en_US, $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_SDKREF_LATEX_FILES_TARGET))) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/, \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync catalog docbook \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync UserManual.fo) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES), $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/, \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync docbook-htmlhelp-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync docbook-html-one-page-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync docbook-html-chunks-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync titlepage-htmlhelp.xsl )) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_MANUAL_PNG_FILES_$(f)))) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/HTMLHelp/,$(VBOX_MANUAL_PNG_FILES_$(f)))) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/UserManual.pdf) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/VirtualBox.chm) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_BIN)/UserManual_$(f).pdf) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_BIN)/VirtualBox_$(f).chm) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(PATH_BIN)/UserManual.pdf \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(PATH_BIN)/VirtualBox.chm \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,en_US,$(VBOX_PATH_MANUAL_OUTBASE)/$f/SDKRef.pdf) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(PATH_BIN)/sdk/docs/SDKRef.pdf \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(wildcard $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/HTMLHelp/*.h*)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES),\
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(patsubst $(VBOX_PATH_MANUAL_SRC)/texfiles/unicode/%,$(VBOX_PATH_MANUAL_OUTBASE)/$f/%, \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_MANUAL_TEX_UNICODE_FILES))) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/$(VBOX_MANUAL_XML_CHANGELOG)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncendif # VBOX_WITH_DOCS
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Options
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncHTMLHELPOPTS =
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Preparations
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# tool locations
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsyncifndef VBOX_OSE
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync # use docbook from our tools directory
1cdc7c917dcbc94f134a0201917a325960bde133vboxsync DOCBOOKPATH ?= $(PATH_DEVTOOLS)/common/DocBook/v1.69.1
1cdc7c917dcbc94f134a0201917a325960bde133vboxsync DOCBOOKDTDPATH ?= $(PATH_DEVTOOLS)/common/docbook-xml/v4.3
1cdc7c917dcbc94f134a0201917a325960bde133vboxsync XML_CATALOG ?= $(VBOX_PATH_MANUAL_OUTBASE)/catalog
1cdc7c917dcbc94f134a0201917a325960bde133vboxsync XML_CATALOG_DOCBOOK ?= $(VBOX_PATH_MANUAL_OUTBASE)/docbook
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsyncelse
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync # use docbook of the build host
1cdc7c917dcbc94f134a0201917a325960bde133vboxsync DOCBOOKPATH ?= http://docbook.sourceforge.net/release/xsl/current/
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsyncendif
1cdc7c917dcbc94f134a0201917a325960bde133vboxsyncVBOXMANAGEPATH ?= $(PATH_BIN)/VBoxManage$(SUFF_EXE)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncifeq ($(KBUILD_HOST),win)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync # tell MiKTeX to automatically download packages
1cdc7c917dcbc94f134a0201917a325960bde133vboxsync PDFLATEX = pdflatex -halt-on-error -interaction batchmode --enable-installer
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncelse
1cdc7c917dcbc94f134a0201917a325960bde133vboxsync PDFLATEX_HALT = $(shell \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync ( pdflatex -version | head -1 | grep 141592 > /dev/null ) && echo -halt-on-error )
1cdc7c917dcbc94f134a0201917a325960bde133vboxsync PDFLATEX = pdflatex $(PDFLATEX_HALT) -interaction batchmode
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncendif
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Windows HTML Help Workshop compiler (stupid thing always returns an error!)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncHHC = -$(EXEC_X86_WIN32) $(VBOX_PATH_HTML_HELP_WORKSHOP)/hhc.exe
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Rules: Preprocess DocBook XML files
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# (preliminary step for both CHM and PDF generation)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# The following rules for $(VBOX_PATH_MANUAL_OUTBASE)/*.xml process the XML files
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# in doc/manual to allow for some magic variable replacements. The PDF and CHM
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# targets do not depend on the XML files in doc/manual, but those in
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# $(VBOX_PATH_MANUAL_OUTBASE) instead, which we copy there from here, after that magic
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# processing.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# So, before copying, the following steps are performed:
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# -- $VBOX_VERSION_* strings are replaced with the actual current VBox version.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# -- $VBOX_MANAGE_OUTPUT (in VBoxManage.xml) is replaced with the current
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# output of the actual VBoxManage program, to save us from having to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# update the manual all the time.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Only one changelog for all languages
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/$(VBOX_MANUAL_XML_CHANGELOG): $(VBOX_PATH_MANUAL_SRC)/$(VBOX_MANUAL_XML_CHANGELOG) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(INSTALL) -m 0644 $< $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# intermediate step to do some variable replacement in the document
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_LANGUAGES),$(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(filter-out user_VBoxManage.xml,$(VBOX_MANUAL_XML_FILES)))): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/% : $(VBOX_PATH_MANUAL_SRC)/% $(VBOX_VERSION_STAMP) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Pre-processing [1] $(@F) to $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@ $@.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e 's/\$$VBOX_VERSION_MAJOR/$(VBOX_VERSION_MAJOR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VERSION_MINOR/$(VBOX_VERSION_MINOR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VERSION_BUILD/$(VBOX_VERSION_BUILD)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VERSION_STRING/$(VBOX_VERSION_STRING)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VENDOR/$(VBOX_VENDOR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_PRODUCT/$(VBOX_PRODUCT)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_C_YEAR/$(VBOX_C_YEAR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $@.tmp $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MV) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/user_VBoxManage.xml): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/% : \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_SRC)/% \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOXMANAGEPATH) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Pre-processing [2] $(@F) to $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@ $@.tmp $@.tmp2
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e 's/\$$VBOX_VERSION_MAJOR/$(VBOX_VERSION_MAJOR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VERSION_MINOR/$(VBOX_VERSION_MINOR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VERSION_BUILD/$(VBOX_VERSION_BUILD)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VERSION_STRING/$(VBOX_VERSION_STRING)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VENDOR/$(VBOX_VENDOR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_PRODUCT/$(VBOX_PRODUCT)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_C_YEAR/$(VBOX_C_YEAR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $@.tmp $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e '1,/\$$VBOX_MANAGE_OUTPUT/!d' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_MANAGE_OUTPUT.*//' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $@ $@.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(REDIRECT) -wo $@.tmp2 -E 'VBOX_LOG_FLAGS=disabled' -E 'VBOX_LOG_DEST=nofile' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(if $(eq $(KBUILD_TARGET),darwin), -E 'DYLD_FALLBACK_LIBRARY_PATH=$(dir $(LIB_RUNTIME))') \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -- \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOXMANAGEPATH) --dumpopts
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e 's/</\&lt;/g' -e 's/>/\&gt;/g' --append $@ $@.tmp2
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e '/\$$VBOX_MANAGE_OUTPUT/,$$!d' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/.*\$$VBOX_MANAGE_OUTPUT//' --append $@ $@.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp $@.tmp2
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncVBOX_MANUAL_APIREF_TMP = $(VBOX_PATH_MANUAL_OUTBASE)/en_US/SDKRef_apiref.xml
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncVBOX_DOC_XIDL_SRC = $(PATH_ROOT)/src/VBox/Main/idl/VirtualBox.xidl
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncVBOX_DOC_XIDL_SRC_TMP = $(VBOX_PATH_MANUAL_OUTBASE)/en_US/VirtualBox.xidl.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_DOC_XIDL_SRC_TMP): $(VBOX_DOC_XIDL_SRC) $(MAKEFILE_CURRENT) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(SED) -e 's|@a \+\(\w\+\)|<tt>\1</tt>|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|@c \+\(\w\+\)|<tt>\1</tt>|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $@ $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# generate SDKRef_apiref.xml as a docbook file excerpt that will be referenced from the SDKRef.xml.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_MANUAL_APIREF_TMP): $(VBOX_DOC_XIDL_SRC_TMP) $(VBOX_PATH_MANUAL_SRC)/xidl2docbook.xsl
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Generating $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_XSLTPROC) --xinclude -o $@ $(VBOX_PATH_MANUAL_SRC)/xidl2docbook.xsl $(VBOX_DOC_XIDL_SRC_TMP)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/en_US/SDKRef.xml: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_SRC)/en_US/SDKRef.xml $(VBOX_MANUAL_APIREF_TMP) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Pre-processing [2] $(@F) to $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@ $@.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e 's/\$$VBOX_VERSION_MAJOR/$(VBOX_VERSION_MAJOR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VERSION_MINOR/$(VBOX_VERSION_MINOR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VERSION_BUILD/$(VBOX_VERSION_BUILD)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VERSION_STRING/$(VBOX_VERSION_STRING)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_VENDOR/$(VBOX_VENDOR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_PRODUCT/$(VBOX_PRODUCT)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/\$$VBOX_C_YEAR/$(VBOX_C_YEAR)/g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $@.tmp $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e '1,/<!--\$$VIRTUALBOX_MAIN_API_REFERENCE-->/!d' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/<!--\$$VIRTUALBOX_MAIN_API_REFERENCE-->//' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $@ $@.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e 's/<?xml version=\"1.0\" encoding=\"utf-8\"?>//g' --append $@ $(VBOX_MANUAL_APIREF_TMP)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e '/<!--\$$VIRTUALBOX_MAIN_API_REFERENCE-->/,$$!d' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's/<!--\$$VIRTUALBOX_MAIN_API_REFERENCE-->//' --append $@ $@.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# $(QUIET)$(MV) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Rules: Create or preprocess files for xsltproc
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# (preliminary step for both CHM and PDF generation)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Create a catalog file for xsltproc that points to docbook catalog.
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsyncifneq ($(XML_CATALOG),)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(XML_CATALOG): $(MAKEFILE_CURRENT) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Creating catalog $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp '<?xml version="1.0"?>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp '<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp '<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <delegatePublic publicIdStartString="-//OASIS/ENTITIES DocBook XML" catalog="file:///$(XML_CATALOG_DOCBOOK)"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <delegatePublic publicIdStartString="-//OASIS/DTD DocBook XML" catalog="file:///$(XML_CATALOG_DOCBOOK)"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/" catalog="file:///$(XML_CATALOG_DOCBOOK)"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <delegateURI uriStartString="http://www.oasis-open.org/docbook/" catalog="file:///$(XML_CATALOG_DOCBOOK)"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp '</catalog>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MV) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Create a docbook catalog file for xsltproc that points to the local docbook files.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(XML_CATALOG_DOCBOOK): $(MAKEFILE_CURRENT) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Creating catalog $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp '<?xml version="1.0"?>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp '<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp '<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="-//OASIS//ELEMENTS DocBook XML Information Pool V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/dbpoolx.mod"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="-//OASIS//DTD DocBook XML V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/docbookx.dtd"/>'
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="-//OASIS//DTD DocBook XML V4.4//EN" uri="file:///$(DOCBOOKDTDPATH)/docbookx.dtd"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="-//OASIS//ENTITIES DocBook XML Character Entities V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/dbcentx.mod"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="-//OASIS//ENTITIES DocBook XML Notations V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/dbnotnx.mod"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="-//OASIS//ENTITIES DocBook XML Additional General Entities V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/dbgenent.mod"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/dbhierx.mod"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="-//OASIS//DTD XML Exchange Table Model 19990315//EN" uri="file:///$(DOCBOOKDTDPATH)/soextblx.dtd"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="-//OASIS//DTD DocBook XML CALS Table Model V4.3//EN" uri="file:///$(DOCBOOKDTDPATH)/calstblx.dtd"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.3" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <rewriteURI uriStartString="http://www.oasis-open.org/docbook/xml/4.3" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>'
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync $(QUIET)$(APPEND) $@.tmp ' <rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.4" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>'
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync $(QUIET)$(APPEND) $@.tmp ' <rewriteURI uriStartString="http://www.oasis-open.org/docbook/xml/4.4" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-amsa.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-amsb.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-amsc.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-amsn.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-amso.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-amsr.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Box and Line Drawing//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-box.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Russian Cyrillic//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-cyr1.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-cyr2.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Diacritical Marks//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-dia.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Greek Letters//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-grk1.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Monotoniko Greek//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-grk2.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Greek Symbols//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-grk3.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-grk4.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Added Latin 1//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-lat1.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Added Latin 2//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-lat2.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-num.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES Publishing//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-pub.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp ' <public publicId="ISO 8879:1986//ENTITIES General Technical//EN" uri="file:///$(DOCBOOKDTDPATH)/ent/iso-tech.ent"/>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(APPEND) $@.tmp '</catalog>'
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MV) -f $@.tmp $@
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsyncendif
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# intermediate step to do some variable replacement in the XSL configuration
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/docbook-htmlhelp-formatcfg.xsl): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_SRC)/docbook-htmlhelp-formatcfg.xsl $(MAKEFILE_CURRENT) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Pre-processing $(@F) to $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e 's|\$$DOCBOOKPATH|$(DOCBOOKPATH)|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\$$CFGPATH|$(VBOX_PATH_MANUAL_SRC)|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\$$TARGETPATH|$(@D)|g' --output $@.tmp $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MV) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Prepare the XSL file for our title page, htmlhelp variant.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/titlepage-htmlhelp.xsl): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_SRC)/titlepage-htmlhelp.xml $(MAKEFILE_CURRENT) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,xsltproc $<)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(VBOX_XSLTPROC) --xinclude --nonet -o $@.tmp $(DOCBOOKPATH)/template/titlepage.xsl $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MV) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Shared rules for PDF generation
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncifndef VBOX_OSE
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# copy ucs.sty and related files
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/ucs.sty):
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Copying unicode support for LaTeX)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(CP) $(VBOX_MANUAL_TEX_UNICODE_FILES) $(@D)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncendif
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# copy the PNG files.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Note: out_dir needs to be referenced with an escaped $ so it doesn't expand as eval expands it input.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncdefine def_vbox_cp_images_pdf
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsynclocal out_dir := $(VBOX_PATH_MANUAL_OUTBASE)/$(lang)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(addprefix $$(out_dir)/,$(VBOX_MANUAL_PNG_FILES_$(lang))): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $$(out_dir)/%: $(VBOX_PATH_MANUAL_SRC)/$(lang)/% | $$$$(dir $$$$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $$(call MSG_L1,Copying temporary $$< => $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $$(QUIET)$$(CP) -f $$< $$@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncendef
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(eval $(def_vbox_cp_images_pdf)))
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# UserManual.pdf
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync## @todo INSTALLS target for this!
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(PATH_BIN)/UserManual.pdf: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.pdf | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(CP) $< $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Fresh LaTeX-generated PDF is now at $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_BIN)/UserManual_$(f).pdf): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(PATH_BIN)/UserManual_%.pdf : $(VBOX_PATH_MANUAL_OUTBASE)/%/UserManual.pdf
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(CP) $< $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Fresh LaTeX-generated PDF is now at $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/UserManual.pdf): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/%/UserManual.pdf : \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/%/UserManual.tex \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(if $(VBOX_OSE),,$(VBOX_PATH_MANUAL_OUTBASE)/%/ucs.sty) \
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES),\
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_MANUAL_PNG_FILES_$(f)))) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# PDF generation via Latex: generate the .tex file
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,pdflatex $< (three passes) -> $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(REDIRECT) -C $(@D) -- $(PDFLATEX) UserManual.tex
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(REDIRECT) -C $(@D) -- $(PDFLATEX) UserManual.tex
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(REDIRECT) -C $(@D) -- $(PDFLATEX) UserManual.tex
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##@todo restore this when above has been converted to INSTALLS target. $(call MSG_L1,Fresh LaTeX-generated PDF is now at $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# generate temporary LaTeX source from processed XML
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/UserManual.tex): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/%/UserManual.tex : \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/%/,$(VBOX_MANUAL_XML_FILES)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/$(VBOX_MANUAL_XML_CHANGELOG) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(MAKEFILE_CURRENT)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Generating $@ from DocBook XML)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $(addprefix $(@D)/,$(VBOX_MANUAL_LATEX_FILES_TARGET))
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# generate TeX source from processed docbook and store it in UserManual.tex.tmp;
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# pass current language to xsltproc in TARGETLANG variable (extract it from the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# current directory, should become "de_DE" or the like)
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync $(QUIET)$(VBOX_XSLTPROC) $(XSLTPROC_VERBOSE) --xinclude --nonet --stringparam TARGETLANG $(notdir $(@D)) -o $@.tmp $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# for pretty quotes, replace " with `` or '' depending on whether it's at the start of a word;
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# the \QUOTE{} was inserted by docbook2latex.xsl for all quotes _outside_ of screen sections
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|^\\QUOTE{}|\\OQ{}|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\(\W\)\\QUOTE{}|\1\\OQ{}|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\(\w\)\\QUOTE{}|\1\\CQ{}|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $@ $@.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# SDKRef.pdf
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_SDK)/docs/SDKRef.pdf: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/SDKRef.tex \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(if $(VBOX_OSE),,$(VBOX_PATH_MANUAL_OUTBASE)/en_US/ucs.sty) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/,$(VBOX_MANUAL_PNG_FILES_en_US)) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# PDF generation via Latex: generate the .tex file
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MKDIR) -p $(VBOX_PATH_SDK)/docs
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,pdflatex $< (three passes))
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(REDIRECT) -C $(<D) -- $(PDFLATEX) SDKRef.tex
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(REDIRECT) -C $(<D) -- $(PDFLATEX) SDKRef.tex
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(REDIRECT) -C $(<D) -- $(PDFLATEX) SDKRef.tex
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(CP) $(<D)/SDKRef.pdf $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Fresh LaTeX-generated PDF is now at $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# generate temporary LaTeX source from processed XML
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/en_US/SDKRef.tex: $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/,$(VBOX_SDKREF_XML_FILES)) $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $(MAKEFILE_CURRENT)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Generating $@ from DocBook XML)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $(addprefix $(@D/),$(VBOX_SDKREF_LATEX_FILES_TARGET))
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# generate TeX source from processed docbook and store it in SDKRef.tex.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_XSLTPROC) $(XSLTPROC_VERBOSE) --xinclude --nonet --stringparam TARGETLANG en_US -o $@.tmp $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# for pretty quotes, replace " with `` or '' depending on whether it's at the start of a word;
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# the \QUOTE{} was inserted by docbook2latex.xsl for all quotes _outside_ of screen sections
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|^\\QUOTE{}|\\OQ{}|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\(\W\)\\QUOTE{}|\1\\OQ{}|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\(\w\)\\QUOTE{}|\1\\CQ{}|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $@ $@.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# VirtualBox.chm
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Main rule for the .chm file (target of OTHERS at the top):
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# We first generate a .hhp help source file from the preprocessed
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# DocBook XML files, as defined above, then feed that into the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Microsoft Help Compiler.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncifdef VBOX_WITH_DOCS_CHM
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(PATH_BIN)/VirtualBox.chm: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/VirtualBox.chm
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(CP) $< $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Fresh CHM is now at $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_BIN)/VirtualBox_$(f).chm): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(PATH_BIN)/VirtualBox_%.chm : $(VBOX_PATH_MANUAL_OUTBASE)/%/VirtualBox.chm
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(CP) $< $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Fresh CHM is now at $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/VirtualBox.chm): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/%/VirtualBox.chm: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/%/HTMLHelp/htmlhelp.hhp \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/HTMLHelp/,$(VBOX_MANUAL_PNG_FILES_$(f))))
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,hhc $<,=> $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(HHC) $(subst /,\\,$<)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/HTMLHelp/htmlhelp.hhp): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/%/HTMLHelp/htmlhelp.hhp: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/%/,$(VBOX_MANUAL_XML_FILES)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/$(VBOX_MANUAL_XML_CHANGELOG) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/%/docbook-htmlhelp-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/%/titlepage-htmlhelp.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(XML_CATALOG) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(XML_CATALOG_DOCBOOK)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,xsltproc $<,=> $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MKDIR) -p $(@D)
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync $(QUIET)$(if $(XML_CATALOG),XML_CATALOG_FILES=$(XML_CATALOG)) \
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync $(VBOX_XSLTPROC) --xinclude --nonet --output $(@D)/ \
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync --stringparam htmlhelp.chm \
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync $(subst /,\\,$(@D)/../VirtualBox.chm) \
a6ff37a401cc2d7445a3fdc9640aeecb17aa5c22vboxsync $(HTMLHELPOPTS) $(@D)/../docbook-htmlhelp-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# copy the PNG files.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Note: out_dir needs to be referenced with an escaped $ so it doesn't expand as eval expands it input.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncdefine def_vbox_cp_images_html
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsynclocal out_dir := $(VBOX_PATH_MANUAL_OUTBASE)/$(lang)/HTMLHelp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$$(addprefix $$(out_dir)/,$(VBOX_MANUAL_PNG_FILES_$(lang))): \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $$(out_dir)/%: $(VBOX_PATH_MANUAL_SRC)/$(lang)/% | $$$$(dir $$$$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $$(call MSG_L1,Copying temporary $$< => $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $$(QUIET)$$(CP) -f $$< $$@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncendef
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(eval $(def_vbox_cp_images_html)))
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# Packing the docs into a zip file
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(PATH_BIN)/VBoxDocumentation.zip: $(VBOX_MANUAL_PACK)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Packing documentation $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(REDIRECT) -C $(PATH_BIN) -- zip$(HOSTSUFF_EXE) -9 $@ $(notdir $^)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncendif # VBOX_WITH_DOCS_CHM
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# UserManual.html
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# intermediate step to do some variable replacement in the XSL configuration
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/en_US/docbook-html-one-page-formatcfg.xsl: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_SRC)/docbook-html-one-page-formatcfg.xsl $(MAKEFILE_CURRENT) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Pre-processing $(@F) to $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e 's|\$$DOCBOOKPATH|$(DOCBOOKPATH)|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\$$CFGPATH|$(VBOX_PATH_MANUAL_SRC)|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\$$TARGETPATH|$(@D)|g' --output $@.tmp $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MV) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/en_US/docbook-html-chunks-formatcfg.xsl: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_SRC)/docbook-html-chunks-formatcfg.xsl $(MAKEFILE_CURRENT) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Pre-processing $(@F) to $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e 's|\$$DOCBOOKPATH|$(DOCBOOKPATH)|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\$$CFGPATH|$(VBOX_PATH_MANUAL_SRC)|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\$$TARGETPATH|$(@D)|g' --output $@.tmp $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MV) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/docbook-html-one-page-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/,$(VBOX_MANUAL_XML_FILES)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/,$(VBOX_MANUAL_PNG_FILES_en_US)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/$(VBOX_MANUAL_XML_CHANGELOG)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,xsltproc $<)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(VBOX_XSLTPROC) --xinclude --nonet \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/docbook-html-one-page-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.xml
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/docbook-html-chunks-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/,$(VBOX_MANUAL_XML_FILES)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/,$(VBOX_MANUAL_PNG_FILES_en_US)) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/$(VBOX_MANUAL_XML_CHANGELOG)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,xsltproc $<)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(VBOX_XSLTPROC) --xinclude --nonet \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --stringparam chunk.section.depth 0 \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/docbook-html-chunks-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.xml
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Packing documentation $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(REDIRECT) -C $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ -- zip$(HOSTSUFF_EXE) \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -9 -r $@ html-single html-chunks $(VBOX_MANUAL_PNG_FILES_en_US)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsynchtml:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsynchtml:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsynchtml-zip:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# ChangeLog.html
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync#
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync##########################################################################################
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync# intermediate step to do some variable replacement in the XSL configuration
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/en_US/docbook-changelog-formatcfg.xsl: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_SRC)/docbook-changelog-formatcfg.xsl $(MAKEFILE_CURRENT) | $$(dir $$@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Pre-processing $(@F) to $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e 's|\$$DOCBOOKPATH|$(DOCBOOKPATH)|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\$$CFGPATH|$(VBOX_PATH_MANUAL_SRC)|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -e 's|\$$TARGETPATH|$(@D)|g' --output $@.tmp $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MV) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLog.xml: ChangeLog.xml
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(CP) $< $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/user_ChangeLogImpl_1.xml: $(VBOX_PATH_MANUAL_SRC)/user_ChangeLogImpl.xml
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(RM) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(SED) -e 's|para|simpara|g' \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --output $@.tmp $<
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(MV) -f $@.tmp $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLog.html: \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/user_ChangeLogImpl_1.xml \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/docbook-changelog-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLog.xml
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(VBOX_XSLTPROC) --xinclude --nonet --output $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLog.html \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(@D)/docbook-changelog-formatcfg.xsl \
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLog.xml
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync$(PATH_BIN)/ChangeLog.html: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLog.html
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(QUIET)$(CP) $< $@
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync $(call MSG_L1,Fresh ChangeLog.html is now at $@)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsynccl-html: $(PATH_BIN)/ChangeLog.html
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncinclude $(KBUILD_PATH)/subfooter.kmk
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync