summaryrefslogtreecommitdiffstats
path: root/CustomTarget_html.mk
diff options
context:
space:
mode:
Diffstat (limited to 'CustomTarget_html.mk')
-rw-r--r--CustomTarget_html.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/CustomTarget_html.mk b/CustomTarget_html.mk
index 8b6325a3e6..5d913826c2 100644
--- a/CustomTarget_html.mk
+++ b/CustomTarget_html.mk
@@ -99,14 +99,15 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/html.text : \
&& rm -rf $(dir $@)text \
&& find text -name "*.xhp" \
| while read xhp; do \
+ mkdir -p $$(dirname $(dir $@)$$xhp) && \
$(call gb_ExternalExecutable_get_command,xsltproc) \
--stringparam Language $* \
--stringparam local $(if $(HELP_ONLINE),'no','yes') \
- --stringparam root `pwd`/ \
+ --stringparam root $(if $(filter WNT,$(OS)),$$(cygpath -m `pwd`),`pwd`)/ \
--stringparam productversion $(PRODUCTVERSION) \
-o $(dir $@)$${xhp%.xhp}.html \
$(SRCDIR)/helpcontent2/help3xsl/online_transform.xsl \
- `pwd`/$$xhp \
+ $(if $(filter WNT,$(OS)),$$(cygpath -m `pwd`),`pwd`)/$$xhp \
; done \
&& touch $@ \
)