--- a/do-gdb.sh
+++ b/do-gdb.sh
@@ -115,4 +115,9 @@
 $GNUMAKE -j$(num_cpus) MAKE=$GNUMAKE -e
 $INSTALL_LAUNCHER $GNUMAKE install MAKE=$GNUMAKE -e
 
+if [ -z "${SUPPRESS_CLEAN+""}" ] ; then
+	cd ..
+	rm -rf "$PKG_NAME-$PKG_VERSION-build"
+	rm -rf "$PKG_NAME-$PKG_VERSION"
+fi
 cd "$INITIAL_DIR"