From 54f032756009fae76a11aaba25cf21031e35e1ae Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Mon, 9 Feb 2015 15:27:09 +0100 Subject: [PATCH] Makefile intermediate state --- Doc/Makefile | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/Doc/Makefile b/Doc/Makefile index f3c24fae8..d815fead8 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -7,6 +7,8 @@ WWWBASE=www.mi.hdm-stuttgart.de:/home/infocenter2/doc PPARAM= -p eclipse.plugin.name Lectures \ -p eclipse.plugin.provider 'Martin Goik, goik@hdm-stuttgart.de' +DOCMODULES=Sd1 Sda1 Sda2 + BUILDROOT=/tmp #+++ no changes below this line ++++++++++++++++++++++++++++++++++++ @@ -31,18 +33,31 @@ all: ${BUILDNAVI}/printversion.pdf ${BUILDNAVI}/index.html ${BUILDNAVI}/printversion.pdf:${SCRIPTBASENAME}.xml Common/glossary.xml Common/bibliography.xml mkdir -p ${BUILDROOT}; saxon9he-xslt -s:${SCRIPTBASENAME}.xml -xi:on -xsl:../ws/Docbook/Extensions/Xsl/docbook2docbook.xsl > ${BUILDROOT}/${SCRIPTBASENAME}.xml -# mkdir -p ${BUILDNAVI} ${BUILDNONAVI} -# /usr/share/xmlmind/bin/xxetool convert -p suppress.navigation 1 -p eclipse.plugin.id $(PLUGINID) ${PPARAM} db5.toEclipseHelp \ -# ${SCRIPTBASENAME}.answer.xml -u $(BUILDNONAVI) -# mkdir -p Ref/Fig/Generate;rm -f Ref/Fig/Generate/*.tex;\ -# ../bin/stripUnicode.sh resources/Generate/*.tex; mv resources/Generate/*.tex Ref/Fig/Generate -# cd Ref/Fig;make all + for module in ${DOCMODULES}; do \ + tar c- $$module/Ref| tar -x -C ${BUILDROOT}; \ + done; + cd ${BUILDROOT}; mkdir -p ${BUILDNAVI} ${BUILDNONAVI};\ + /usr/share/xmlmind/bin/xxetool convert -p suppress.navigation 1 -p eclipse.plugin.id $(PLUGINID) ${PPARAM} db5.toEclipseHelp \ + ${SCRIPTBASENAME}.xml -u $(BUILDNONAVI) # /usr/share/xmlmind/bin/xxetool convert -p eclipse.plugin.id $(PLUGINID) ${PPARAM} db5.toEclipseHelp ${SCRIPTBASENAME}.answer.xml -u $(BUILDNAVI) # perl -i -p -e '$$/=undef;s/\n[ \t]*<!DOCTYPE[^>]+\n[^>]*>$$//m' ${BUILDNAVI}/*.xml ${BUILDNONAVI}/*.xml # /usr/share/xmlmind/bin/xxetool convert db5.toPSFile ${SCRIPTBASENAME}.answer.xml \ # -s pdf -s "|pdf" -u $(BUILDNAVI)/printversion.pdf # tar c --exclude=\.svn Ref|tar -xC ${BUILDNAVI} + +post: + cd ${BUILDROOT};\ + for module in ${DOCMODULES}; do \ + mkdir -p $$module/Ref/Fig/Generate;rm -f $$module/Ref/Fig/Generate/*.tex;\ + ../../bin/stripUnicode.sh resources/Generate/*.tex; mv resources/Generate/*.tex Ref/Fig/Generate + done; + + + +# cd Ref/Fig;make all + + #You may have to start refdbd -i applic.mi.hdm-stuttgart.de -s -e 0 -l 7 db.docbook.bib.xml:db.docbook.xml runbib -u refdb -d refdb_mi -t db50x -r -G raw.css -E utf-8 db.docbook.xml -- GitLab