diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2020-05-04 10:33:44 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2020-05-11 17:43:42 +0200 |
commit | ee180ade07e36dd1fb8c7bdca6ecbab44ded9eb8 (patch) | |
tree | 5e5f78e114533b036e02c3b2e0d97ba618a97c93 /CustomTarget_html.mk | |
parent | 5bead0438b7fe977d8d2288c0397b34a3623d68f (diff) |
tdf#128519 Automate icon repl't table for Help bld
The solution here is to create links.txt.xsl in the
helpcontent2/helpers/ folder at build time because the <include>
directive in XSLT of online_transform.xsl must be hardcoded
(compile time) and core/workdir/ is not.
Change-Id: I8c4c8d0b8aed58c10a95c5d42bbd1b8acdb39614
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/93436
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'CustomTarget_html.mk')
-rw-r--r-- | CustomTarget_html.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CustomTarget_html.mk b/CustomTarget_html.mk index 5ee580350a..b9eab167f7 100644 --- a/CustomTarget_html.mk +++ b/CustomTarget_html.mk @@ -54,6 +54,7 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/hid2file.js : \ ) > $@ \ ) + # Xapian localized templates ifeq ($(HELP_OMINDEX_PAGE),TRUE) @@ -154,8 +155,14 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/contents.part : \ $(TREE_FILE) \ ) +# link txt file for icon replacement table +$(SRCDIR)/helpcontent2/helpers/links.txt.xsl: \ + $(SRCDIR)/icon-themes/colibre/links.txt + $(SRCDIR)/helpcontent2/helpers/make_icon_link.txt.py $(SRCDIR)/icon-themes/colibre/links.txt $@ + define html_gen_html_dep $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/html.text : \ + $(SRCDIR)/helpcontent2/helpers/links.txt.xsl \ $(foreach module,$(html_TEXT_MODULES), \ $(if $(filter en-US,$(1)), \ $(call gb_AllLangHelp_get_helpfiles_target,$(module)), \ |