- Timestamp:
- Mar 13, 2023 1:04:22 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Makefile.kmk
r98901 r98932 32 32 # -- UserManual.pdf, generated by LaTex 33 33 # 34 # -- VirtualBox.chm35 34 # 36 35 # Both files end up in PATH_STAGE_BIN. … … 51 50 # generate PDF. 52 51 # 53 # -- CHM file: again, pre-process the XML files in PATH_TARGET, then use54 # xsltproc to create a .HHP file for the Microsoft Help Compiler, then55 # feed that file to it.56 52 # 57 53 … … 155 151 endif 156 152 157 ifdef VBOX_WITH_DOCS_CHM158 INSTALLS += VBox-docs-usermanual-chm159 VBOX_PATH_BIN_CHM = $(PATH_STAGE_BIN)/VirtualBox.chm160 else # Do not build chm.161 VBOX_PATH_BIN_CHM =162 endif163 164 153 ifdef VBOX_WITH_DOCS_QHELP 165 154 INSTALLS += VBox-docs-usermanual-qhc … … 198 187 VBOX_MANUAL_PACK += \ 199 188 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_STAGE_BIN)/UserManual_$(f).pdf) 200 ifdef VBOX_WITH_DOCS_CHM201 INSTALLS += VBox-docs-usermanual-l10n-chm202 VBOX_MANUAL_PACK += \203 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_STAGE_BIN)/VirtualBox_$(f).chm)204 endif205 189 endif 206 190 endif # !VBOX_ONLY_SDK … … 723 707 $(QUIET)$(MV) -f [email protected] $@ 724 708 725 726 ifdef VBOX_WITH_DOCS_CHM727 #728 # VirtualBox.chm729 #730 # We first generate a .hhp help source file from the preprocessed731 # DocBook XML files, as defined above, then feed that into the732 # Microsoft Help Compiler.733 734 # Generate CHM from HHP735 # Note: out_dir needs to be referenced with an escaped $ so it doesn't expand as eval expands it input.736 define def_vbox_usermanual_hhp_to_chm737 local out_dir := $(VBOX_PATH_MANUAL_OUTBASE)/$(lang)738 $$(out_dir)/VirtualBox.chm: \739 $$(out_dir)/HTMLHelp/htmlhelp.hhp \740 $$(addprefix $$(out_dir)/HTMLHelp/,$$(VBOX_MANUAL_PNG_FILES_$(lang))) \741 | $$$$(dir $$$$@)742 $$(call MSG_L1,hhc $$<,=> $$@)743 $$(QUIET)$$(RM) -f $$@744 $$(QUIET)$$(VBOX_HHC) $$(subst /,\\,$$<)745 $$(call MSG_L1,Fresh CHM is now at $$@)746 endef747 $(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(evalcall2 def_vbox_usermanual_hhp_to_chm))748 749 # Generate HHP from XML750 # Note: out_dir needs to be referenced with an escaped $ so it doesn't expand as eval expands it input.751 define def_vbox_usermanual_xml_to_hhp752 local out_dir := $(VBOX_PATH_MANUAL_OUTBASE)/$(lang)753 $$(out_dir)/HTMLHelp/htmlhelp.hhp: \754 $$(addprefix $$(VBOX_PATH_MANUAL_SRC)/$(lang)/,$$(VBOX_MANUAL_XML_FILES)) \755 $$(VBOX_MANUAL_XML_FILES_COMMON) \756 $$(VBOX_MANUAL_XML_FILES_GENERATED_$(lang)) \757 $$(VBOX_DOCBOOK_HTMLHELP_FORMATCFG) \758 $$(VBOX_PATH_MANUAL_OUTBASE)/titlepage-htmlhelp.xsl \759 $$(if $$(VBOX_HAVE_XMLLINT),$$(out_dir)/validatemanual.run,) \760 $$(VBOX_XML_CATALOG) $$(VBOX_XML_CATALOG_DOCBOOK) $$(VBOX_XML_CATALOG_MANUAL) \761 $$(VBOX_XML_ENTITIES) | $$$$(dir $$$$@)762 $$(call MSG_TOOL,xsltproc $$(notdir $$(firstword $$(filter %.xsl,$$^))),,$$(firstword $$(filter %.xml,$$^)),$$@)763 $$(QUIET)$$(RM) -f $$@764 $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) --output $$(@D)/ \765 --stringparam htmlhelp.chm \766 $$(subst /,\\,$$(VBOX_PATH_MANUAL_OUTBASE)/$(lang)/VirtualBox.chm) \767 $$(HTMLHELPOPTS) $$(VBOX_PATH_MANUAL_SRC)/docbook-htmlhelp-formatcfg.xsl \768 $$<769 endef770 $(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(evalcall2 def_vbox_usermanual_xml_to_hhp))771 772 # copy the PNG files.773 # Note: out_dir needs to be referenced with an escaped $ so it doesn't expand as eval expands it input.774 define def_vbox_cp_images_htmlhelp775 local out_dir := $(VBOX_PATH_MANUAL_OUTBASE)/$(lang)/HTMLHelp776 $(addprefix $$(out_dir)/,$(VBOX_MANUAL_PNG_FILES_$(lang))): \777 $$(out_dir)/% : $(VBOX_PATH_MANUAL_SRC)/$(lang)/% | $$$$(dir $$$$@)778 $$(call MSG_L1,Copying temporary $$< => $$@)779 $$(QUIET)$$(INSTALL_STAGING) -m0644 -- '$$<' '$$(@D)'780 endef781 $(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(eval $(def_vbox_cp_images_htmlhelp)))782 783 endif # VBOX_WITH_DOCS_CHM784 785 786 709 # Packing the docs into a zip file 787 710 $(PATH_STAGE_BIN)/VBoxDocumentation.zip: $(VBOX_MANUAL_PACK)
Note:
See TracChangeset
for help on using the changeset viewer.