THRIFT-1735 integrate tutorial into regular build
- cpp support
- cleanup stuff


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1401818 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tutorial/java/Makefile.am b/tutorial/java/Makefile.am
index 16ae399..3b2174a 100755
--- a/tutorial/java/Makefile.am
+++ b/tutorial/java/Makefile.am
@@ -24,6 +24,9 @@
 	ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \
 	$$ANT $(ANT_FLAGS) clean
 
+all-local:
+	$(ANT) $(ANT_FLAGS) compile
+
 check-local: all
 	$(ANT) $(ANT_FLAGS) test
 
diff --git a/tutorial/java/build.xml b/tutorial/java/build.xml
index 28c3bd6..eceeca7 100644
--- a/tutorial/java/build.xml
+++ b/tutorial/java/build.xml
@@ -106,6 +106,7 @@
 
   <target name="clean">
     <delete dir="${build}" />
+    <delete dir="${gen}"/>
     <delete file="tutorial.jar" />
   </target>