THRIFT-373. Get some missing files into the release tarballs

- Added some stuff to EXTRA_DIST.
- Added some non-compiled sources to a C++ test.
- Made lib/perl/test a SUBDIR of lib/perl.

The last is a revert of r766558, but I moved the "Types.pm" rules in
lib/perl/test/Makefile.am to the check-local target, so it should still
work as expected (per THRIFT-461).

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@777681 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/Makefile.am b/Makefile.am
index 0c196ce..bd56601 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,4 +25,4 @@
 	find $(distdir) -name '.[a-zA-Z0-9]*' | xargs rm -rf
 
 EXTRA_DIST = bootstrap.sh cleanup.sh print_version.sh doc tutorial contrib \
-             CONTRIBUTORS LICENSE
+             CONTRIBUTORS LICENSE CHANGES DISCLAIMER NOTICE
diff --git a/lib/java/Makefile.am b/lib/java/Makefile.am
index c5c7521..cb1332e 100644
--- a/lib/java/Makefile.am
+++ b/lib/java/Makefile.am
@@ -17,7 +17,7 @@
 # under the License.
 #
 
-EXTRA_DIST = build.xml src test
+EXTRA_DIST = build.xml ivy.xml src test
 
 export CLASSPATH
 
diff --git a/lib/perl/Makefile.am b/lib/perl/Makefile.am
index fd1adf4..163d015 100644
--- a/lib/perl/Makefile.am
+++ b/lib/perl/Makefile.am
@@ -17,7 +17,7 @@
 # under the License.
 #
 
-SUBDIRS = 
+SUBDIRS = test
 
 Makefile-perl.mk : Makefile.PL
 	$(PERL) Makefile.PL MAKEFILE=Makefile-perl.mk INSTALLDIRS=$(INSTALLDIRS)
@@ -27,7 +27,6 @@
 	find blib -name 'Makefile*' -exec rm -f {} \;
 
 check-local:
-	make -C test
 	$(PERL) -Iblib/lib -I@abs_srcdir@ -I@builddir@/test/gen-perl \
 		@abs_srcdir@/test.pl @abs_srcdir@/test/*.t
 
diff --git a/lib/perl/test/Makefile.am b/lib/perl/test/Makefile.am
index 0dcb15a..ce87c48 100644
--- a/lib/perl/test/Makefile.am
+++ b/lib/perl/test/Makefile.am
@@ -20,7 +20,7 @@
 THRIFT = @top_builddir@/compiler/cpp/thrift
 THRIFT_IF = @top_srcdir@/test/ThriftTest.thrift
 
-all-local: gen-perl/ThriftTest/Types.pm
+check-local: gen-perl/ThriftTest/Types.pm
 
 gen-perl/ThriftTest/Types.pm: $(THRIFT_IF)
 	$(THRIFT) --gen perl $(THRIFT_IF)
diff --git a/lib/rb/Makefile.am b/lib/rb/Makefile.am
index 3534e27..9cfffc7 100644
--- a/lib/rb/Makefile.am
+++ b/lib/rb/Makefile.am
@@ -25,6 +25,7 @@
 	lib \
 	ext \
 	benchmark \
+	script \
 	spec
 
 all-local:
diff --git a/test/Makefile.am b/test/Makefile.am
index c959f6a..1226935 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -93,7 +93,9 @@
 # AllProtocolsTest
 #
 AllProtocolsTest_SOURCES = \
-	AllProtocolTests.cpp
+	AllProtocolTests.cpp \
+	AllProtocolTests.tcc \
+	GenericHelpers.h
 
 AllProtocolsTest_LDADD = libtestgencpp.la