THRIFT-292. Auto-generate the Python gen-code in build.xml

r739384 deleted the generated Python code from the source tree.
With this change, it will be automatically generated when make is run.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741830 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/contrib/fb303/py/Makefile.am b/contrib/fb303/py/Makefile.am
index d6fac6e..6883d66 100644
--- a/contrib/fb303/py/Makefile.am
+++ b/contrib/fb303/py/Makefile.am
@@ -4,6 +4,8 @@
 all:
 
 all-local:
+	$(thrift_home)/bin/thrift --gen py $(top_srcdir)/if/fb303.thrift
+	mv gen-py/fb303/* fb303
 	$(PYTHON) setup.py build
 
 # We're ignoring prefix here because site-packages seems to be