Changeset 99058 in vbox for trunk/doc/manual
- Timestamp:
- Mar 20, 2023 2:01:52 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156423
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Makefile.kmk
r99057 r99058 603 603 604 604 # 605 # We copy/hardlink all the files under <lang>/dita/* to the corresponding606 # VBOX_PATH_MANUAL_OUTBASE location. This is mainly to deal with DITO-OT's607 # inability to search for topic files in more than one place, so we have to608 # gather generated and static topic sources + the .ditamap-file(s) in one609 # 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. 610 610 # 611 611 … … 616 616 VBOX_USER_MANUAL_DITA_BASIC_SRC_FILES := \ 617 617 $(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))) 620 620 621 621 ## … … 627 627 define def_vbox_copy_manual_dita_src_files 628 628 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))) 632 632 VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)_FALLBACK := \ 633 633 $$(filter-out $$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)), $$(VBOX_USER_MANUAL_DITA_BASIC_SRC_FILES)) 634 634 635 635 VBOX_USER_MANUAL_DITA_STAGED_FILES_$(1) = \ 636 $$(addprefix $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/, \637 638 639 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) 640 640 641 641 ifneq ($$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)),) 642 642 $$(addprefix $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/,$$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1))): \ 643 $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/%: \644 643 $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/% : \ 644 $$(VBOX_PATH_MANUAL_SRC)/$1/dita/% | $$$$(dir $$$$@) 645 645 $$(QUIET)$$(INSTALL_STAGING) -m 0644 -- "$$<" "$$(@D)/" 646 646 endif … … 648 648 ifneq ($$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)_FALLBACK),) 649 649 $$(addprefix $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/,$$(VBOX_USER_MANUAL_DITA_SRC_FILES_$(1)_FALLBACK)): \ 650 $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/%: \651 650 $$(VBOX_PATH_MANUAL_OUTBASE)/$1/dita/% : \ 651 $$(VBOX_PATH_MANUAL_SRC)/en_US/dita/% | $$$$(dir $$$$@) 652 652 $$(QUIET)$$(INSTALL_STAGING) -m 0644 -- "$$<" "$$(@D)/" 653 653 endif … … 672 672 $(call MSG_L1, Ran common dita steps) 673 673 $(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 # 674 684 675 685 … … 811 821 $$(VBOX_MANUAL_XML_FILES_COMMON) \ 812 822 $$(VBOX_MANUAL_XML_FILES_GENERATED_$(lang)) \ 813 $$(VBOX_USER_MANUAL_DITA_STAGED_FILES_$(lang)) \823 $$(VBOX_USER_MANUAL_DITA_STAGED_FILES_$(lang)) \ 814 824 $$(VBOX_PATH_MANUAL_OUTBASE)/dita_common 815 825 $$(QUIET)$(RM) -f -- "$$@"
Note:
See TracChangeset
for help on using the changeset viewer.