VirtualBox

Changeset 99075 in vbox for trunk/doc


Ignore:
Timestamp:
Mar 20, 2023 11:52:00 PM (22 months ago)
Author:
vboxsync
Message:

manual/Makefile.kmk: Nuke the output directories prior to running DITA-OT when possible, also make sure they exists to prevent trouble with newer DITA-OT plugins. bugref:10302

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/Makefile.kmk

    r99074 r99075  
    794794                $$(VBOX_USER_MANUAL_DITA_STAGED_FILES_$(lang)) \
    795795                $$(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES_$(lang))
    796         $$(QUIET)$(RM) -f -- "$$@"
    797         $$(QUIET)$(RM) -Rf -- "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-pdf/"
     796        $$(QUIET)$$(RM) -f -- "$$@" "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/UserManual_pdf.log" \
     797        $$(QUIET)$$(RM) -Rf -- "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-pdf/"
    798798        $$(QUIET)$$(call VBOX_DITA_RUN_DOST,$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-pdf,, \
    799799                "/i:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/UserManual.ditamap" \
     
    824824                $(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES_en_US)
    825825        $(call MSG_L1,Building html chunks $@)
    826         $(QUIET)$(RM) -Rf -- "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-chunks/"
     826        $(QUIET)$(RM) -Rf -- "$(@D)" "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-chunks/"
     827        $(QUIET)$(MKDIR) -- "$(@D)"
    827828        $(QUIET)$(call VBOX_DITA_RUN_DOST,$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-chunks,, \
    828829                "/i:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual.ditamap" \
     
    845846                $(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES_en_US)
    846847        $(call MSG_L1,Building html chunks $@)
    847         $(QUIET)$(RM) -Rf -- "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/"
    848848        $(QUIET)$(RM) -f -- "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual-Single.ditamap"
    849849        $(SED) -r -e 's/ chunk=["][^"]+["]//g' -e 's/<bookmap /<bookmap chunk="to-content" /' \
    850850                --output "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual-Single.ditamap" \
    851851                "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual.ditamap"
    852         $(QUIET)$(RM) -Rf -- "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-single/"
     852        $(QUIET)$(RM) -Rf -- "$(@D)" "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-single/"
     853        $(QUIET)$(MKDIR) -- "$(@D)"
    853854        $(QUIET)$(call VBOX_DITA_RUN_DOST,$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-single,, \
    854855                "/i:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual-Single.ditamap" \
     
    937938   # compilation step that produces the .chm-file, since we don't need it and it
    938939   # mangles the path so it always fails anyway.
     940   ## @todo front page.
    939941   $(2)/UserManual.hhp: \
    940942                $(VBOX_USER_MANUAL_DITA_STAGED_FILES_$(1)) \
    941943                $(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES_$(1))
    942         $$(QUIET)$(RM) -Rf -- "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-qhelp/"
     944        $$(QUIET)$$(RM) -Rf -- "$$(@D)" "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-qhelp/"
     945        $$(QUIET)$$(MKDIR) -- "$$(@D)"
    943946        $$(QUIET)$$(call VBOX_DITA_RUN_DOST,$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-qhelp, -EHHCDIR="$$(@D)", \
    944947                "/i:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/UserManual.ditamap" \
     
    962965
    963966   # 3. Copy the Qt help configuration file from source to the output dir.
    964    $(2)/UserManual.qhcp: $$(VBOX_PATH_MANUAL_SRC)/UserManual.qhcp | $$$$(dir $$$$@)
     967   $(2)/UserManual.qhcp: \
     968                $$(VBOX_PATH_MANUAL_SRC)/UserManual.qhcp \
     969                | $(2)/UserManual.hhp # (Must not run parallel to UserManual.hpp, so it can safely nuke the output dir.)
    965970        $$(QUIET)$$(INSTALL_STAGING) -m0644 -- '$$<' '$$(@D)'
    966971
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette