Index: tests/bugs/docs/Makefile.am
===================================================================
--- tests/bugs/docs/Makefile.am	(revision 495)
+++ tests/bugs/docs/Makefile.am	(working copy)
@@ -68,3 +68,10 @@
 # e.g. EXTRA_DIST += version.xml.in
 EXTRA_DIST +=
 
+DISTCLEANFILES = \
+	gtkdoc-scan.log \
+	gtkdoc-scangobj.log \
+	gtkdoc-mktmpl.log \
+	gtkdoc-mkdb.log \
+	gtkdoc-mkhtml.log \
+	gtkdoc-fixxref.log
Index: tests/gtk-doc.make
===================================================================
--- tests/gtk-doc.make	(revision 495)
+++ tests/gtk-doc.make	(working copy)
@@ -119,8 +119,13 @@
 	rm -f *~ *.bak
 	rm -rf .libs
 
+distclean-local:
+	cd $(srcdir) && \
+	  rm -rf xml $(REPORT_FILES) \
+	         $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
+
 maintainer-clean-local: clean
-	cd $(srcdir) && rm -rf xml html \
+	cd $(srcdir) && rm -rf html \
 	$(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt $(REPORT_FILES)
 
 # do not install test-suite docs along with gtk-doc
@@ -154,9 +159,7 @@
 endif
 
 dist-hook: dist-check-gtkdoc dist-hook-local
-	mkdir $(distdir)/xml
 	mkdir $(distdir)/html
-	-cp $(srcdir)/xml/*.xml $(distdir)/xml
 	-cp $(srcdir)/html/* $(distdir)/html
 	if test -f $(srcdir)/$(DOC_MODULE).types; then \
 	  cp $(srcdir)/$(DOC_MODULE).types $(distdir)/$(DOC_MODULE).types; \
Index: tests/gobject/docs/Makefile.am
===================================================================
--- tests/gobject/docs/Makefile.am	(revision 495)
+++ tests/gobject/docs/Makefile.am	(working copy)
@@ -66,3 +66,10 @@
 # e.g. EXTRA_DIST += version.xml.in
 EXTRA_DIST +=
 
+DISTCLEANFILES = \
+	gtkdoc-scan.log \
+	gtkdoc-scangobj.log \
+	gtkdoc-mktmpl.log \
+	gtkdoc-mkdb.log \
+	gtkdoc-mkhtml.log \
+	gtkdoc-fixxref.log
