summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-08-25 18:35:46 +0000
committerRafael H. Schloming <rhs@apache.org>2009-08-25 18:35:46 +0000
commit5f3169637dd2d86f3376683de3cbd9d19091a00d (patch)
tree66590898e2b1a475d946e79d4ffb8315e146b6b8 /qpid/python
parentf51bcb30713f515fcabeb9e05501dfe0ebae4523 (diff)
downloadqpid-python-5f3169637dd2d86f3376683de3cbd9d19091a00d.tar.gz
worked around the lack of abspath on older systems
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@807754 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/python/Makefile b/qpid/python/Makefile
index 0fbb6c8ce1..380115db41 100644
--- a/qpid/python/Makefile
+++ b/qpid/python/Makefile
@@ -23,7 +23,13 @@ DATA_DIR=$(PREFIX)/share
PYTHON_LIB=$(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(prefix='$(PREFIX)')")
PYTHON_VERSION=$(shell python -c "from distutils.sysconfig import get_python_version; print get_python_version()")
-AMQP_SPEC_DIR=$(abspath $(DATA_DIR)/amqp)
+
+ddfirst=$(shell ddir=$(DATA_DIR) && echo $${ddir:0:1})
+ifeq ($(ddfirst),/)
+AMQP_SPEC_DIR=$(DATA_DIR)/amqp
+else
+AMQP_SPEC_DIR=$(PWD)/$(DATA_DIR)/amqp
+endif
DIRS=qmf qpid mllib models examples tests tests_0-8 tests_0-9 tests_0-10
SRCS=$(shell find $(DIRS) -name "*.py") qpid_config.py