summaryrefslogtreecommitdiffstats
path: root/CustomTarget_html.mk
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2020-05-04 10:33:44 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2020-05-11 17:43:42 +0200
commitee180ade07e36dd1fb8c7bdca6ecbab44ded9eb8 (patch)
tree5e5f78e114533b036e02c3b2e0d97ba618a97c93 /CustomTarget_html.mk
parentCorrect Menu path to insert animated GIF (diff)
downloadhelp-ee180ade07e36dd1fb8c7bdca6ecbab44ded9eb8.tar.gz
help-ee180ade07e36dd1fb8c7bdca6ecbab44ded9eb8.zip
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.mk7
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)), \