Index: tests/Makefile.am
===================================================================
--- tests/Makefile.am	(revision 3359802670548fc87631cecbecfec411ebe8e834)
+++ tests/Makefile.am	(revision 2a59655a1dd1d977b68a881bb4951a8e017eeb1d)
@@ -102,6 +102,13 @@
 	@+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
 
-clean-local :
+mostlyclean-local :
 	rm -f ${EXTRA_PROGRAMS}
+	rm -rf __pycache__
+	find ${builddir} -path '*.o' -delete
+	find ${builddir} -path '*/.err/*.log' -delete
+	find ${builddir} -path '*/.out/*.log' -delete
+
+distclean-local :
+	find ${builddir} -path '*.Po' -delete
 
 list :
