From 0cc19da618b9cec6ad4653749f8a3d6dea066a06 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 25 Aug 2009 18:35:46 +0000 Subject: worked around the lack of abspath on older systems git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@807754 13f79535-47bb-0310-9956-ffa450edef68 --- python/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/Makefile b/python/Makefile index 0fbb6c8ce1..380115db41 100644 --- a/python/Makefile +++ b/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 -- cgit v1.2.1