THRIFT-292. Auto-generate the Python gen-code in build.xml
authorDavid Reiss <dreiss@apache.org>
Sat, 7 Feb 2009 02:36:57 +0000 (02:36 +0000)
committerDavid Reiss <dreiss@apache.org>
Sat, 7 Feb 2009 02:36:57 +0000 (02:36 +0000)
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

contrib/fb303/py/Makefile.am

index d6fac6e..6883d66 100644 (file)
@@ -4,6 +4,8 @@ EXTRA_DIST = setup.py src
 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