shithub: aubio

Download patch

ref: a2b6523e921bb0e30812d73386b3ded412aaa648
parent: 1ae5fc5f19638eace0336592c425437260e85a18
author: Paul Brossier <piem@piem.org>
date: Sat Sep 30 13:48:49 EDT 2017

Makefile: build python against libaubio to get all coverage

--- a/Makefile
+++ b/Makefile
@@ -237,11 +237,14 @@
 coverage: export CFLAGS=--coverage
 coverage: export LDFLAGS=--coverage
 coverage: export PYTHONPATH=$(PWD)/python/lib
+coverage: export LD_LIBRARY_PATH=$(PWD)/build/src
 coverage: force_uninstall_python deps_python \
-	clean_python clean distclean
+	clean_python clean distclean build local_dylib
+	lcov --capture --no-external --directory . --output-file build/coverage_lib.info
 	pip install -v -e .
 	coverage run `which nose2`
-	lcov --capture --no-external --directory . --output-file build/coverage.info
+	lcov --capture --no-external --directory . --output-file build/coverage_python.info
+	lcov -a build/coverage_python.info -a build/coverage_lib.info -o build/coverage.info
 
 coverage_report: coverage
 	genhtml build/coverage.info --output-directory lcov_html