From 6d46286ffca5398006896fec57c9459846d9ac5d Mon Sep 17 00:00:00 2001
From: Martin Goik <goik@hdm-stuttgart.de>
Date: Thu, 28 Jan 2016 13:13:52 +0100
Subject: [PATCH] Makefile rule correction aligning with man lecture note
 generation

---
 ws/Docbook/Extensions/Tdata/Makefile | 7 ++++---
 ws/Docbook/Extensions/Tdata/fig.xml  | 2 ++
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ws/Docbook/Extensions/Tdata/Makefile b/ws/Docbook/Extensions/Tdata/Makefile
index 309e5b134..43890ce46 100644
--- a/ws/Docbook/Extensions/Tdata/Makefile
+++ b/ws/Docbook/Extensions/Tdata/Makefile
@@ -34,6 +34,7 @@ all: epub webhelp pdf
 
 
 ${BUILDROOT}/${SCRIPTBASENAME}_print.xml \
+${BUILDROOT}/${SCRIPTBASENAME}_html.xml \
 ${BUILDROOT}/${SCRIPTBASENAME}.xml: ${SCRIPTBASENAME}.xml
 	mkdir -p ${BUILDROOT};
 	${SAXONCMD} -s:${SCRIPTBASENAME}.xml -xsl:../Xsl/docbook2docbook.xsl >  ${BUILDROOT}/${SCRIPTBASENAME}.xml
@@ -44,9 +45,9 @@ ${BUILDROOT}/${SCRIPTBASENAME}.xml: ${SCRIPTBASENAME}.xml
 epub:
 	/usr/share/xmlmind/bin/xxetool convert $(DEBUG) db5.toEpub fig.xml -u $(TARGETDIR)/fig.epub
 
-webhelp:fig.xml
-	/usr/share/xmlmind/bin/xxetool convert $(DEBUG)  \
-           db5.toWebHelp fig.xml -u $(TARGETDIR)
+webhelp:${BUILDROOT}/${SCRIPTBASENAME}_html.xml
+	cd  ${BUILDROOT};/usr/share/xmlmind/bin/xxetool convert $(DEBUG)  \
+           db5.toWebHelp ${SCRIPTBASENAME}_html.xml -u webhelp
 
 pdf: fig.xml
 	/usr/share/xmlmind/bin/xxetool convert $(DEBUG) ${XSLPARAM_pdf} \
diff --git a/ws/Docbook/Extensions/Tdata/fig.xml b/ws/Docbook/Extensions/Tdata/fig.xml
index f194e1aaa..960b30f8e 100644
--- a/ws/Docbook/Extensions/Tdata/fig.xml
+++ b/ws/Docbook/Extensions/Tdata/fig.xml
@@ -239,5 +239,7 @@
         </qandaentry>
       </qandadiv>
     </qandaset>
+
+    <para>This is the end my friend.</para>
   </chapter>
 </book>
-- 
GitLab