update makefile
diff --git a/test/py/Makefile.am b/test/py/Makefile.am
index 9433e59..57529d7 100644
--- a/test/py/Makefile.am
+++ b/test/py/Makefile.am
@@ -48,7 +48,11 @@
         gen-py-dynamicslots/ThriftTest/__init__.py           \
         gen-py-dynamicslots/DebugProtoTest/__init__.py \
         gen-py-dynamicslots/DoubleConstantsTest/__init__.py \
-        gen-py-dynamicslots/Recursive/__init__.py
+        gen-py-dynamicslots/Recursive/__init__.py \
+        gen-py-enum/ThriftTest/__init__.py \
+        gen-py-enum/DebugProtoTest/__init__.py \
+        gen-py-enum/DoubleConstantsTest/__init__.py \
+        gen-py-enum/Recursive/__init__.py
 
 
 precross: $(thrift_gen)
@@ -93,6 +97,10 @@
 	test -d gen-py-dynamicslots || $(MKDIR_P) gen-py-dynamicslots
 	$(THRIFT) --gen py:dynamic,slots -out gen-py-dynamicslots $<
 
+gen-py-enum/%/__init__.py: ../%.thrift $(THRIFT)
+	test -d gen-py-enum || $(MKDIR_P) gen-py-enum
+	$(THRIFT) --gen py:enum -out gen-py-enum $<
+
 clean-local:
 	$(RM) -r build
 	find . -type f \( -iname "*.pyc" \) | xargs rm -f