diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2009-08-25 18:35:46 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2009-08-25 18:35:46 +0000 |
| commit | 0cc19da618b9cec6ad4653749f8a3d6dea066a06 (patch) | |
| tree | d5167fa46af7cdec1d199aa9672d947f14b80d1e /python/Makefile | |
| parent | 99631aeb4f1b18e3506e5465c03dce246e9df2d6 (diff) | |
| download | qpid-python-0cc19da618b9cec6ad4653749f8a3d6dea066a06.tar.gz | |
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
Diffstat (limited to 'python/Makefile')
| -rw-r--r-- | python/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
