From 30c20a5a35b6930b7031f852205fbbf2ab109621 Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Sat, 17 Mar 2007 20:21:07 +0000
Subject: [PATCH] Merged patches 4858 4860 and 4861 from release/1.0

[[Imported from SVN: r4862]]
---
 doc/doxygen/Makefile.am | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/doc/doxygen/Makefile.am b/doc/doxygen/Makefile.am
index 2c828aafa..52116824e 100644
--- a/doc/doxygen/Makefile.am
+++ b/doc/doxygen/Makefile.am
@@ -80,8 +80,8 @@ html-dist: $(DOXYGENHEADERBUILD)
 	  echo Running doxygen. This may take a while... ; \
 	  $(DOXYGEN) Doxyfile.tmp > doxygen.log 2>&1 <&- ; \
 	  rm -f Doxyfile.tmp; \
-	fi; \
-	mv html html-dist
+	fi
+	if test -d html; then rm -rf html-dist; mv html html-dist; fi
 
 # how to install the doxygen documentation
 doxygen-install:
@@ -100,7 +100,8 @@ FORCE:
 include $(top_srcdir)/am/webstuff
 
 clean-local:
-	rm -rf html html-dist latex *~
+	if test -e Doxydep; then rm -rf html html-dist; fi
+	rm -rf latex *~
 
 CLEANFILES = $(WHAT) $(DOXYGENTAG) $(DOXYGENHEADER)
 
-- 
GitLab