From 8775b5b20cfd0cecfda6495722342b865d843c0c Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Mon, 24 Dec 2012 22:56:09 +0100
Subject: [PATCH] Fix dependency on built python sources for hs-check

Since we call into Python for opcodes and other type compatibility
checks, we need to ensure that the python sources are
built. Otherwise, full parallel make might or might not break,
depending on timing.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
---
 Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 4161c1861..1dccd406c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1551,7 +1551,8 @@ check-local: check-dirs $(GENERATED_FILES)
 	test -z "$$error"
 
 .PHONY: hs-check
-hs-check: htest/test htest/hpc-htools htest/hpc-mon-collector $(HS_BUILT_TEST_HELPERS)
+hs-check: htest/test htest/hpc-htools htest/hpc-mon-collector $(HS_BUILT_TEST_HELPERS) \
+	| $(BUILT_PYTHON_SOURCES)
 	@rm -f *.tix
 	./htest/test
 	HBINARY="./htest/hpc-htools" ./htest/offline-test.sh
-- 
GitLab