- Timestamp:
- Sep 14, 2016 7:14:02 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Makefile.kmk
r63604 r63841 101 101 # xsltproc with the catalog trick if applicable. 102 102 ifdef VBOX_XML_CATALOG 103 VBOX_XSLTPROC_WITH_CAT = $(REDIRECT) -E "XML_CATALOG_FILES=$(VBOX_XML_CATALOG)" -- \103 VBOX_XSLTPROC_WITH_CAT = $(REDIRECT) -E "XML_CATALOG_FILES=$(VBOX_XML_CATALOG)" $1 -- \ 104 104 $(VBOX_XSLTPROC) --nonet --xinclude $(VBOX_XSLTPROC_OPTS) 105 105 VBOX_XMLLINT_WITH_CAT = $(REDIRECT) -E "XML_CATALOG_FILES=$(VBOX_XML_CATALOG)" -- \ 106 106 $(VBOX_XMLLINT) --nonet --xinclude --noout $(VBOX_XMLLINT_OPTS) 107 107 else 108 VBOX_XSLTPROC_WITH_CAT = $( VBOX_XSLTPROC) --nonet --xinclude $(VBOX_XSLTPROC_OPTS)108 VBOX_XSLTPROC_WITH_CAT = $(if $(1), $(REDIRECT) $1 --,,) $(VBOX_XSLTPROC) --nonet --xinclude $(VBOX_XSLTPROC_OPTS) 109 109 VBOX_XMLLINT_WITH_CAT = $(VBOX_XMLLINT) --nonet --xinclude --noout $(VBOX_XMLLINT_OPTS) 110 110 endif … … 477 477 $$(call MSG_TOOL,xsltproc $$(notdir $$(filter %.xsl,$$^)),,$$(filter %.xml,$$^),$$@) 478 478 $$(QUIET)$$(RM) -f "$$@" 479 $$(QUIET)$$( VBOX_XSLTPROC_WITH_CAT) --output $$@ $$(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manual-sect1.xsl $$<479 $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) --output $$@ $$(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manual-sect1.xsl $$< 480 480 endef 481 481 $(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(foreach file,$(VBOX_MANUAL_XML_REFENTRY_FILES) \ … … 491 491 | $$(dir $$@) 492 492 $(call MSG_TOOL,xsltproc $(notdir $(filter %.xsl,$^)),,$(firstword $(filter %.xml,$^)),$@) 493 $(QUIET)$( VBOX_XSLTPROC_WITH_CAT) --output "$@" $< $(filter %.xml,$^)493 $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) --output "$@" $< $(filter %.xml,$^) 494 494 495 495 $(VBOX_PATH_MANUAL_OUTBASE)/user_VBoxManage_CommandsOverview.xml: $(VBOXMANAGEHELP_PATH) $(MAKEFILE_CURRENT) | $$(dir $$@) … … 598 598 # pass current language to xsltproc in TARGETLANG variable (extract it from the 599 599 # current directory, should become "de_DE" or the like) 600 $(QUIET)$( VBOX_XSLTPROC_WITH_CAT) --stringparam TARGETLANG $(notdir $(@D)) \600 $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) --stringparam TARGETLANG $(notdir $(@D)) \ 601 601 -o [email protected] $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $< 602 602 # for pretty quotes, replace " with `` or '' depending on whether it's at the start of a word; … … 666 666 #endif 667 667 # generate TeX source from processed docbook and store it in SDKRef.tex.tmp 668 $(QUIET)$( VBOX_XSLTPROC_WITH_CAT) --stringparam TARGETLANG en_US \668 $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) --stringparam TARGETLANG en_US \ 669 669 -o [email protected] $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $< 670 670 # for pretty quotes, replace " with `` or '' depending on whether it's at the start of a word; … … 751 751 $(QUIET)$(RM) -f $@ 752 752 $(QUIET)$(MKDIR) -p $(@D) 753 $(QUIET)$( VBOX_XSLTPROC_WITH_CAT) --output $(@D)/ \753 $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) --output $(@D)/ \ 754 754 --stringparam htmlhelp.chm \ 755 755 $(subst /,\\,$(@D)/../VirtualBox.chm) \ … … 800 800 | $$(dir $$@) 801 801 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@) 802 $(QUIET)$( VBOX_XSLTPROC_WITH_CAT) \802 $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) \ 803 803 --output $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html \ 804 804 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/docbook-html-one-page-formatcfg.xsl \ … … 813 813 | $$(dir $$@) 814 814 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@) 815 $(QUIET)$( VBOX_XSLTPROC_WITH_CAT) \815 $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) \ 816 816 --output $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html \ 817 817 --stringparam chunk.section.depth 0 \ … … 846 846 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) | $$(dir $$@) 847 847 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@) 848 $(QUIET)$( VBOX_XSLTPROC_WITH_CAT) --output "$@" "$<" $(filter %.xml,$^)848 $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) --output "$@" "$<" $(filter %.xml,$^) 849 849 $(call MSG_L1,Fresh ChangeLog.html is now at $@) 850 850 … … 875 875 $$(call MSG_TOOL,xsltproc $$(notdir $$(firstword $$(filter %.xsl,$$^))),,$$(firstword $$(filter %.xml,$$^)),$$@) 876 876 $$(QUIET)$$(RM) -f "$$@" 877 $$(QUIET)$$( VBOX_XSLTPROC_WITH_CAT) --output $$@ \877 $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) --output $$@ \ 878 878 $$(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manpage-preprocessing.xsl $$< 879 879 if defined(VBOX_HAVE_XMLLINT) && "$(USER)" == "bird" # Effing stuff happends on build servers, probably kmk related... … … 888 888 $$(call MSG_TOOL,xsltproc $$(notdir $$(firstword $$(filter %.xsl,$$^))),,$$(firstword $$(filter %.xml,$$^)),$$@) 889 889 $$(QUIET)$$(RM) -f "$$@" 890 $$(QUIET)$$( VBOX_XSLTPROC_WITH_CAT) --output $$@ $$(VBOX_PATH_MANUAL_OUTBASE)/docbook-refentry-to-manpage.xsl $$<890 $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) --output $$@ $$(VBOX_PATH_MANUAL_OUTBASE)/docbook-refentry-to-manpage.xsl $$< 891 891 endef 892 892 $(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(foreach file,$(VBOX_MANUAL_XML_REFENTRY_FILES) \ … … 936 936 '' 937 937 $(foreach refentry,$(filter %.xml,$^) \ 938 ,$(NLTAB)$(QUIET)$( REDIRECT) -a+to "$@" -- $(VBOX_XSLTPROC_WITH_CAT) $< $(refentry))938 ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$@") $< $(refentry)) 939 939 $(QUIET)$(APPEND) -n "$@" \ 940 940 '' \ … … 972 972 ' HELP_CMD_VBOXMANAGE_INVALID = 0,' 973 973 $(foreach refentry,$(filter %.xml,$^) \ 974 ,$(NLTAB)$(QUIET)$( REDIRECT) -a+to "$@" -- $(VBOX_XSLTPROC_WITH_CAT) \974 ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$@") \ 975 975 --stringparam 'g_sMode' 'cmd' $< $(refentry)) 976 976 $(QUIET)$(APPEND) -n "$@" \ … … 978 978 '} HELP_CMD_VBOXMANAGE;' 979 979 $(foreach refentry,$(filter %.xml,$^) \ 980 ,$(NLTAB)$(QUIET)$( REDIRECT) -a+to "$@" -- $(VBOX_XSLTPROC_WITH_CAT) \980 ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$@") \ 981 981 --stringparam 'g_sMode' 'subcmd' $< $(refentry)) 982 982 $(QUIET)$(APPEND) -n "$@" \
Note:
See TracChangeset
for help on using the changeset viewer.