Mercurial > hg > audiodb
changeset 666:4dacfe92a6ff
More, better makefiles
Generalize the python makefile a little bit; now likely to work on multiple
Linux platforms. Also adjust it to bring it into line with the calling
convention of the top-level makefile, and include bindings/pd in BINDINGDIRS.
author | mas01cr |
---|---|
date | Wed, 03 Feb 2010 10:28:09 +0000 |
parents | 50761b56e8be |
children | c322a631ba23 |
files | Makefile bindings/python/Makefile |
diffstat | 2 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Tue Feb 02 22:22:49 2010 +0000 +++ b/Makefile Wed Feb 03 10:28:09 2010 +0000 @@ -7,7 +7,7 @@ LIBGSL=$(shell pkg-config --libs gsl) TESTDIRS=tests libtests -BINDINGDIRS=bindings/sb-alien bindings/pd +BINDINGDIRS=bindings/sb-alien bindings/pd bindings/python PREFIX=/usr/local EXEC_PREFIX=$(PREFIX)
--- a/bindings/python/Makefile Tue Feb 02 22:22:49 2010 +0000 +++ b/bindings/python/Makefile Wed Feb 03 10:28:09 2010 +0000 @@ -1,7 +1,11 @@ all: python setup.py build -test: - env PYTHONPATH=./build/lib.linux-i686-2.5 \ - LD_LIBRARY_PATH=../.. \ - python tests/InitialisationRelated.py \ No newline at end of file +test: ../../libaudioDB.so.0.0 all + (cd tests && \ + env PYTHONPATH=../build/lib.linux-`uname -m`-2.5 \ + LD_LIBRARY_PATH=../../.. \ + python InitialisationRelated.py) + +clean: + rm -rf tests/test* pyadb.pyc build