THRIFT-3274 calling "make clean" twice in a row yields make error

This closes #676
diff --git a/lib/cpp/test/Makefile.am b/lib/cpp/test/Makefile.am
index 44b94a7..4b7a99f 100755
--- a/lib/cpp/test/Makefile.am
+++ b/lib/cpp/test/Makefile.am
@@ -360,7 +360,7 @@
 AM_CXXFLAGS = -Wall -Wextra -pedantic
 
 clean-local:
-	$(RM) -r gen-cpp
+	$(RM) gen-cpp/*
 
 EXTRA_DIST = \
 	concurrency \