THRIFT-3138 "make check" parallel execution is underministic
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                           \