Makefile: copy lib to ~/lib (osx) and set LD_LIBRARY_PATH (linux)
authorPaul Brossier <piem@piem.org>
Fri, 22 Apr 2016 00:24:59 +0000 (02:24 +0200)
committerPaul Brossier <piem@piem.org>
Fri, 22 Apr 2016 00:24:59 +0000 (02:24 +0200)
Makefile

index 779a0d5..477aba0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,9 @@ build_python:
        cd python && ./setup.py build
 
 test_python:
-       cd python && ./setup.py install && ./tests/run_all_tests
+       cd python && ./setup.py install
+       [ -f build/src/libaubio.4.dylib ] && mkdir -p ~/lib && cp -prv build/src/libaubio.4.dylib ~/lib
+       LD_LIBRARY_PATH=$(PWD)/build/src python/tests/run_all_tests
 
 clean_python:
        cd python && ./setup.py clean