THRIFT-3138 "make check" parallel execution is underministic
diff --git a/lib/c_glib/test/Makefile.am b/lib/c_glib/test/Makefile.am
index 4683759..a9842da 100755
--- a/lib/c_glib/test/Makefile.am
+++ b/lib/c_glib/test/Makefile.am
@@ -20,6 +20,18 @@
SUBDIRS =
+BUILT_SOURCES = \
+ gen-c_glib/t_test_debug_proto_test_types.h \
+ gen-c_glib/t_test_empty_service.h \
+ gen-c_glib/t_test_inherited.h \
+ gen-c_glib/t_test_optional_required_test_types.h \
+ gen-c_glib/t_test_reverse_order_service.h \
+ gen-c_glib/t_test_second_service.h \
+ gen-c_glib/t_test_service_for_exception_with_a_map.h \
+ gen-c_glib/t_test_srv.h \
+ gen-c_glib/t_test_thrift_test.h \
+ gen-c_glib/t_test_thrift_test_types.h
+
AM_CPPFLAGS = -g -Wall -I../src $(GLIB_CFLAGS)
AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) @GCOV_LDFLAGS@
@@ -40,6 +52,7 @@
testthrifttest
if WITH_CPP
+ BUILT_SOURCES += gen-cpp/ThriftTest_types.cpp
check_PROGRAMS += testthrifttestclient
endif
@@ -165,7 +178,7 @@
gen-c_glib/t_test_optional_required_test_types.c gen-c_glib/t_test_optional_required_test_types.h: ../../../test/OptionalRequiredTest.thrift
$(THRIFT) --gen c_glib $<
-gen-c_glib/t_test_second_service.c gen-c_glib/t_test_thrift_test.c gen-c_glib/t_test_thrift_test_types.c gen-c_glib/t_test_second_service.h gen-c_glib/t_test_thrift_test-.h gen-c_glib/t_test_thrift_test_types.h: ../../../test/ThriftTest.thrift
+gen-c_glib/t_test_second_service.c gen-c_glib/t_test_thrift_test.c gen-c_glib/t_test_thrift_test_types.c gen-c_glib/t_test_second_service.h gen-c_glib/t_test_thrift_test.h gen-c_glib/t_test_thrift_test_types.h: ../../../test/ThriftTest.thrift
$(THRIFT) --gen c_glib $<
gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest_types.cpp: ../../../test/ThriftTest.thrift
diff --git a/test/go/Makefile.am b/test/go/Makefile.am
index 7357f50..e244676 100644
--- a/test/go/Makefile.am
+++ b/test/go/Makefile.am
@@ -17,6 +17,8 @@
# under the License.
#
+BUILT_SOURCES = gopath
+
THRIFT = $(top_builddir)/compiler/cpp/thrift
THRIFTCMD = $(THRIFT) -out src/gen --gen go:thrift_import=thrift
THRIFTTEST = $(top_srcdir)/test/ThriftTest.thrift
diff --git a/test/py/Makefile.am b/test/py/Makefile.am
index f8a3aa0..d3f0a7d 100755
--- a/test/py/Makefile.am
+++ b/test/py/Makefile.am
@@ -39,6 +39,7 @@
gen-py-dynamicslots/DebugProtoTest/__init__.py
precross: $(THRIFT) $(thrift_gen)
+BUILT_SOURCES = $(thrift_gen)
helper_scripts= \
TestClient.py \
diff --git a/tutorial/c_glib/Makefile.am b/tutorial/c_glib/Makefile.am
index 751b5ce..43748c0 100755
--- a/tutorial/c_glib/Makefile.am
+++ b/tutorial/c_glib/Makefile.am
@@ -18,6 +18,12 @@
#
AUTOMAKE_OPTIONS = subdir-objects serial-tests
+BUILT_SOURCES = \
+ gen-c_glib/calculator.h \
+ gen-c_glib/shared_service.h \
+ gen-c_glib/shared_types.h \
+ gen-c_glib/tutorial_types.h
+
AM_CFLAGS = -g -Wall -Wextra -pedantic $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) @GCOV_CFLAGS@
AM_CPPFLAGS = -I$(top_srcdir)/lib/c_glib/src -Igen-c_glib
AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) @GCOV_LDFLAGS@