summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-04-12 20:14:54 +0000
committerAlan Conway <aconway@apache.org>2010-04-12 20:14:54 +0000
commit4a1be7a8bf3c97b6247d1a786cc12126f554b48c (patch)
tree600fbcdef836deffedb12ff658bb4597d6c8e66c /cpp/src
parent9c6d2488b20df5ca73300f01a36f7f89fe2dd929 (diff)
downloadqpid-python-4a1be7a8bf3c97b6247d1a786cc12126f554b48c.tar.gz
Fix testagent.mk to generate code conditionally same as ../Makefile.am
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933393 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/testagent.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/tests/testagent.mk b/cpp/src/tests/testagent.mk
index 33448ee547..0f171d9579 100644
--- a/cpp/src/tests/testagent.mk
+++ b/cpp/src/tests/testagent.mk
@@ -35,8 +35,10 @@ TESTAGENT_GEN_SRC= \
testagent_gen/qmf/org/apache/qpid/agent/example/Package.cpp
$(TESTAGENT_GEN_SRC): testagent_gen.timestamp
-
-testagent_gen.timestamp: testagent.xml ../mgen.timestamp
+if GENERATE
+TESTAGENT_DEPS=../mgen.timestamp
+endif # GENERATE
+testagent_gen.timestamp: testagent.xml ${TESTAGENT_DEPS}
$(QMF_GEN) -o testagent_gen/qmf $(srcdir)/testagent.xml
touch $@