summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-09-29 15:49:03 +0000
committerAlan Conway <aconway@apache.org>2009-09-29 15:49:03 +0000
commitdd56a5a0af2c3e71bdbd4de7d92e6d1432891843 (patch)
treeb1f4a694999b53a8eda29a4ac8d925504ab7c6b2 /qpid/cpp/src
parentf6096529d86b040fd919b17cbbfcf3f74641b4af (diff)
downloadqpid-python-dd56a5a0af2c3e71bdbd4de7d92e6d1432891843.tar.gz
Fix dependencies so python client used by tests is built before tests.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@819994 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/tests/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/Makefile.am b/qpid/cpp/src/tests/Makefile.am
index 6dae8aba69..15133505a3 100644
--- a/qpid/cpp/src/tests/Makefile.am
+++ b/qpid/cpp/src/tests/Makefile.am
@@ -363,6 +363,9 @@ PYTHON_SRC_DIR=$(abs_srcdir)/../../../python
PYTHON_BLD_DIR=$(abs_builddir)/python
AMQP_SPEC_DIR=$(abs_srcdir)/../../../specs
+# Generate python client as part of the all-am target so it gets built before tests.
+all-am: python_prep
+
python_prep:
if test -d $(PYTHON_SRC_DIR) -a -d $(AMQP_SPEC_DIR); \
then $(MAKE) -C $(PYTHON_SRC_DIR) install PREFIX=$(PYTHON_BLD_DIR) PYTHON_LIB=$(PYTHON_BLD_DIR) EXEC_PREFIX=$(PYTHON_BLD_DIR)/commands AMQP_SPEC_DIR=$(AMQP_SPEC_DIR); \