summaryrefslogtreecommitdiff
path: root/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
commit67a08b32db58b940bb54fba7f76254f11c608907 (patch)
treef11eb8d68d392684e6805b5cd0cd4c9cb8747a69 /cpp/src
parent0ec685a34285b7252c53140837b39c1b4392c5db (diff)
downloadqpid-python-67a08b32db58b940bb54fba7f76254f11c608907.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/qpid@819994 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/tests/Makefile.am b/cpp/src/tests/Makefile.am
index 6dae8aba69..15133505a3 100644
--- a/cpp/src/tests/Makefile.am
+++ b/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); \