THRIFT-1614: handle automake >= 1.12 yacc output name (thrifty.hh)
diff --git a/compiler/cpp/Makefile.am b/compiler/cpp/Makefile.am
index f47b15f..8a8f394 100644
--- a/compiler/cpp/Makefile.am
+++ b/compiler/cpp/Makefile.am
@@ -106,6 +106,7 @@
              $(WINDOWS_DIST)
 
 clean-local:
-	$(RM) thriftl.cc thrifty.cc thrifty.h version.h windows/version.h
+	$(RM) thriftl.cc thrifty.cc thrifty.h thrifty.hh version.h windows/version.h
+	echo '#include "thrifty.h"' > compiler/cpp/thrifty.hh
 
 src/main.cc: version.h