VirtualBox

Changeset 99058 in vbox for trunk/doc/manual


Ignore:
Timestamp:
Mar 20, 2023 2:01:52 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156423
Message:

manual/Makefile.kmk: Cleaning up the makefile step by step... bugref:10348 bugref:10302

File:
1 edited

Legend:

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

    r99057 r99058  
    603603
    604604 #
    605  # We copy/hardlink all the files under <lang>/dita/* to the corresponding
    606  # VBOX_PATH_MANUAL_OUTBASE location.  This is mainly to deal with DITO-OT's
    607  # inability to search for topic files in more than one place, so we have to
    608  # gather generated and static topic sources + the .ditamap-file(s) in one
    609  # place.
     605 # 1. We copy/hardlink all the files under <lang>/dita/* to the corresponding
     606 #    VBOX_PATH_MANUAL_OUTBASE location.  This is mainly to deal with DITO-OT's
     607 #    inability to search for topic files in more than one place, so we have to
     608 #    gather generated and static topic sources + the .ditamap-file(s) in one
     609 #    place.
    610610 #
    611611
     
    616616 VBOX_USER_MANUAL_DITA_BASIC_SRC_FILES := \
    617617        $(notdir $(wildcard $(VBOX_PATH_MANUAL_SRC)/en_US/dita/*.ditamap)) \
    618         $(addprefix topics/,$(notdir $(wildcard $(VBOX_PATH_MANUAL_SRC)/en_US/dita/topics/*dita))) \
    619         $(addprefix topics/images/,$(notdir $(wildcard $(VBOX_PATH_MANUAL_SRC)/en_US/dita/topics/images/*png)))
     618        $(addprefix topics/,$(notdir $(wildcard $(VBOX_PATH_MANUAL_SRC)/en_US/dita/topics/*dita))) \
     619        $(addprefix topics/images/,$(notdir $(wildcard $(VBOX_PATH_MANUAL_SRC)/en_US/dita/topics/images/*png)))
    620620
    621621 ##
     
    627627 define def_vbox_copy_manual_dita_src_files
    628628  VBOX_USER_MANUAL_DITA_SRC_FILES_$(1) := \
    629         $$(notdir $$(wildcard $$(VBOX_PATH_MANUAL_SRC)/$1/dita/*.ditamap)) \
    630         $$(addprefix topics/,$$(notdir $$(wildcard $$(VBOX_PATH_MANUAL_SRC)/$1/dita/topics/*dita))) \
    631         $$(addprefix topics/images/,$$(notdir $$(wildcard $$(VBOX_PATH_MANUAL_SRC)/$1/dita/topics/images/*png)))
     629        $$(notdir $$(wildcard $$(VBOX_PATH_MANUAL_SRC)/$1/dita/*.ditamap)) \
     630        $$(addprefix topics/,$$(notdir $$(wildcard $$(VBOX_PATH_MANUAL_SRC)/$1/dita/topics/*dita))) \
     631        $$(addprefix topics/images/,$$(notdir $$(wildcard $$(VBOX_PATH_MANUAL_SRC)/$1/dita/topics/images/*png)))
    632632  VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)_FALLBACK := \
    633633        $$(filter-out $$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)), $$(VBOX_USER_MANUAL_DITA_BASIC_SRC_FILES))
    634634
    635635  VBOX_USER_MANUAL_DITA_STAGED_FILES_$(1) = \
    636         $$(addprefix $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/,\
    637                 $$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)) \
    638                 $$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)_FALLBACK) \
    639                 topics/reference.dtd)
     636        $$(addprefix $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/, \
     637        $$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)) \
     638        $$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)_FALLBACK) \
     639        topics/reference.dtd)
    640640
    641641  ifneq ($$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)),)
    642642   $$(addprefix $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/,$$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1))): \
    643          $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/%: \
    644                  $$(VBOX_PATH_MANUAL_SRC)/$1/dita/% | $$$$(dir $$$$@)
     643                $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/% : \
     644                $$(VBOX_PATH_MANUAL_SRC)/$1/dita/% | $$$$(dir $$$$@)
    645645        $$(QUIET)$$(INSTALL_STAGING) -m 0644 -- "$$<" "$$(@D)/"
    646646  endif
     
    648648  ifneq ($$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)_FALLBACK),)
    649649   $$(addprefix $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/,$$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)_FALLBACK)): \
    650          $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/%: \
    651          $$(VBOX_PATH_MANUAL_SRC)/en_US/dita/% | $$$$(dir $$$$@)
     650                $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/% : \
     651                $$(VBOX_PATH_MANUAL_SRC)/en_US/dita/% | $$$$(dir $$$$@)
    652652        $$(QUIET)$$(INSTALL_STAGING) -m 0644 -- "$$<" "$$(@D)/"
    653653  endif
     
    672672        $(call MSG_L1, Ran common dita steps)
    673673        $(QUIET)$(TOUCH) -- "$@"
     674
     675
     676 #
     677 # 2. Convert the manpages from Docbook refentry files to DITA reference files.
     678 #
     679 #    In DITA links needs proper href values, with both file and ID.  Since the
     680 #    source only has IDs, we scan all topics and refentry-files alike and
     681 #    generate a mapping database before we start converting them.  This DB is
     682 #    then used at the end of each conversion to fix the hrefs.
     683 #
    674684
    675685
     
    811821                $$(VBOX_MANUAL_XML_FILES_COMMON) \
    812822                $$(VBOX_MANUAL_XML_FILES_GENERATED_$(lang)) \
    813                 $$(VBOX_USER_MANUAL_DITA_STAGED_FILES_$(lang)) \
     823                $$(VBOX_USER_MANUAL_DITA_STAGED_FILES_$(lang)) \
    814824                $$(VBOX_PATH_MANUAL_OUTBASE)/dita_common
    815825        $$(QUIET)$(RM) -f -- "$$@"
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