From 0d45ec46e3d1daacf4f908dc6ba6f44ad551f997 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 22 Apr 2016 02:24:59 +0200 Subject: [PATCH] Makefile: copy lib to ~/lib (osx) and set LD_LIBRARY_PATH (linux) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 779a0d54..477aba09 100644 --- 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 -- 2.11.0