-# DISTCLEANFILES +=
-
-# Comment this out if you want your docs-status tested during 'make check'
-# TESTS_ENVIRONMENT = cd $(srcsrc)
-# TESTS = $(GTKDOC_CHECK)
-
+DISTCLEANFILES = $(DOC_MODULE)-overrides.txt
+
+# Uncomment this if you want your docs-status tested during 'make check'
+# Comment this while not all symbols are documented, otherwise distcheck fails
+#if ENABLE_GTK_DOC
+#TESTS_ENVIRONMENT = cd $(srcdir) &&
+#TESTS = $(GTKDOC_CHECK)
+#endif