From aa5c92f91ce38ef714060037f28f38abf23ebc70 Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Thu, 27 Nov 2003 16:23:51 +0000
Subject: [PATCH] We can create a doxygen documentation and install it into the
 webdir

[[Imported from SVN: r16]]
---
 doc/.gitignore  |  2 ++
 doc/Makefile.am | 31 ++++++++++++++++++++++++++++++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/doc/.gitignore b/doc/.gitignore
index c038ed786..59c94f7ae 100644
--- a/doc/.gitignore
+++ b/doc/.gitignore
@@ -1,2 +1,4 @@
+html
+latex
 Makefile
 Makefile.in
\ No newline at end of file
diff --git a/doc/Makefile.am b/doc/Makefile.am
index be0c62763..2dd288198 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,3 +1,32 @@
 # $Id$
 
-# nothing yet..
+all: doxygen-tag
+
+doxygen_DEPS = $(shell: cat $(DEPDIR)/doxygen.Po)
+doxygen_FILES = Doxyfile doxy-header.html doxy-footer.html dune-doxy.css
+
+$(DEPDIR)/doxygen.Po:
+	if [ ! -d $(DEPDIR) ]; then mkdir $(DEPDIR); fi
+	echo > $@
+	for d in $$(grep '^INPUT ' Doxyfile | cut -d '=' -f 2); do \
+	  for p in $$(grep '^FILE_PATTERNS ' Doxyfile | cut -d '=' -f 2); \
+	    do find "$$d" -name "$$p" -exec echo doxygen-tag: \{\} \; >> $@ ; \
+	done; done
+
+doxygen-tag: $(doxygen_FILES) $(doxygen_DEPS)
+	doxygen
+	touch doxygen-tag
+
+WEBDIR = /var/www/dune/doxygen
+WEBFILES = "html/*.html wildcard html/*.css"
+
+web-install: doxygen-tag
+	if [ ! -d $(WEBDIR) ]; then \
+	  install -d -g web -m 775 $(WEBDIR); \
+	fi
+	install -g web -m 664 $(WEBFILES) $(WEBDIR)
+
+include $(DEPDIR)/doxygen.Po
+
+clean-local:
+	rm -rf html latex $(DEPDIR) doxygen-tag	*~
-- 
GitLab