now autogenerate the web site from the main HTML document. Daniel

* doc/site.xsl doc/*.html doc/Makefile.am: now autogenerate
  the web site from the main HTML document.
Daniel
diff --git a/doc/Makefile.am b/doc/Makefile.am
index b995b0e..799a2a7 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -12,11 +12,18 @@
 HTML_DIR=@HTML_DIR@
 
 TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/html
+PAGES= architecture.html bugs.html contribs.html docs.html DOM.html \
+    downloads.html entities.html example.html help.html index.html \
+    interface.html intro.html library.html namespaces.html news.html \
+    tree.html valid.html XML.html XSLT.html
 
 man_MANS = xmlcatalog.1
 
-# htmldir = $(prefix)/html
-# html_DATA = gnome-dev-info.html
+all: $(PAGES)
+
+$(PAGES): xml.html site.xsl
+	@(if [ -x /usr/bin/xsltproc ] ; then \
+	  /usr/bin/xsltproc --html site.xsl xml.html > index.html ; fi );
 
 scan:
 	gtkdoc-scan --module=libxml --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="acconfig.h config.h xmlwin32version.h win32config.h trio.h strio.h triop.h"
@@ -52,6 +59,6 @@
 	-(cd $(DESTDIR); gtkdoc-fixxref --module=libxml --html-dir=$(HTML_DIR))
 
 dist-hook:
-	(cd $(srcdir) ; tar cvf - *.1 *.html *.gif html/*.html html/*.sgml) | (cd $(distdir); tar xf -)
+	(cd $(srcdir) ; tar cvf - *.1 site.xsl *.html *.gif html/*.html html/*.sgml) | (cd $(distdir); tar xf -)
 
 .PHONY : html sgml templates scan