THRIFT-841. Exclude generated php and erlang Makefiles from "make dist"

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1004509 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 3c95f24..367621b 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -60,8 +60,6 @@
 EXTRA_DIST = \
   cocoa \
   ocaml \
-  php \
-  erl \
   js \
   as3 \
   st
diff --git a/lib/erl/Makefile.am b/lib/erl/Makefile.am
index 33761a1..18028a7 100644
--- a/lib/erl/Makefile.am
+++ b/lib/erl/Makefile.am
@@ -41,4 +41,6 @@
 maintainer-clean-local:
 	rm -rf ebin
 
+EXTRA_DIST = include src
+
 MAINTAINERCLEANFILES = Makefile.in
diff --git a/lib/php/Makefile.am b/lib/php/Makefile.am
index 02cd184..8067e65 100644
--- a/lib/php/Makefile.am
+++ b/lib/php/Makefile.am
@@ -51,4 +51,6 @@
   src/transport/TSocketPool.php \
   src/transport/TTransport.php
 
+EXTRA_DIST = src thrift_protocol.ini README.apache
+
 MAINTAINERCLEANFILES = Makefile Makefile.in