changeset 667:c322a631ba23

Yet more Makefile refinements Now stands a real chance on multiple python versions and multiple OSes. Still won't work on OS X, though.
author mas01cr
date Wed, 03 Feb 2010 10:50:02 +0000
parents 4dacfe92a6ff
children ce5ff00168e1
files bindings/python/Makefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bindings/python/Makefile	Wed Feb 03 10:28:09 2010 +0000
+++ b/bindings/python/Makefile	Wed Feb 03 10:50:02 2010 +0000
@@ -3,7 +3,7 @@
 
 test: ../../libaudioDB.so.0.0 all
 	(cd tests && \
-	 env PYTHONPATH=../build/lib.linux-`uname -m`-2.5 \
+	 env PYTHONPATH=$$(python -c 'import distutils; import distutils.util; import sys; print "../build/lib.%s-%s" % (distutils.util.get_platform(), sys.version[0:3])') \
 		LD_LIBRARY_PATH=../../.. \
 		python InitialisationRelated.py)