diff --git a/Makefile.in b/Makefile.in
index c779104..576ec20 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -259,6 +259,7 @@ distclean:	clean
 		rm -f cfgdefs.mk
 		rm -f usrdefs.mk
 		rm -f Makefile
+		rmdir build ccenv bin lib 2>&1 || true
 
 clean:		clean-implib
 		rm -f tree.tag