From 093067b848569664d124e63be65a9f32f3a242d0 Mon Sep 17 00:00:00 2001
From: Martin Goik <goik@hdm-stuttgart.de>
Date: Sun, 6 Aug 2017 08:54:28 +0200
Subject: [PATCH] Publishing to DESTDIR

---
 Doc/Makefile.in                  | 2 ++
 XmlCross/Makefile                | 1 +
 ws/Docbook/Preprocess/make.rules | 7 +++++++
 3 files changed, 10 insertions(+)

diff --git a/Doc/Makefile.in b/Doc/Makefile.in
index 2fc67810e..ebd0b5cec 100644
--- a/Doc/Makefile.in
+++ b/Doc/Makefile.in
@@ -1,6 +1,8 @@
 SCRIPTBASENAME=lectures
 #localDbookXslCommonParam=draft.mode=yes
 
+DESTDIR=/var/www/html/freedocs/draft
+
 # Update Bulletin board topics
 updateTopics=no 
 
diff --git a/XmlCross/Makefile b/XmlCross/Makefile
index e463a5960..89fb6f493 100644
--- a/XmlCross/Makefile
+++ b/XmlCross/Makefile
@@ -1,3 +1,4 @@
 SCRIPTBASENAME=xmlcross
+DESTDIR=/var/www/html/freedocs/xmlc
 
 include /usr/share/hdm-docbook-xsl/Preprocess/make.rules
diff --git a/ws/Docbook/Preprocess/make.rules b/ws/Docbook/Preprocess/make.rules
index 8838a01c1..6222ac428 100644
--- a/ws/Docbook/Preprocess/make.rules
+++ b/ws/Docbook/Preprocess/make.rules
@@ -188,4 +188,11 @@ diff:
 	diff -r --brief targetReference/ target|grep -v pdf || exit 0
 
 
+check-install:
+ifndef DESTDIR
+	$(error DESTDIR is undefined)
+endif
+
+install: check-install
+	rsync -av --delete ${BUILDROOT_WEBHELP}/* freedocs@prog.mi.hdm-stuttgart.de:${DESTDIR}
 #end
-- 
GitLab