From 5db2de42283b3f746b5b04b1b2ebe58fc3aac458 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 17 Apr 2012 15:30:35 +0100 Subject: [PATCH 3/3] lcov.am: fix to work in out-of-tree builds Signed-off-by: Simon McVittie --- tools/lcov.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/lcov.am b/tools/lcov.am index 95c4393..488ab1e 100644 --- a/tools/lcov.am +++ b/tools/lcov.am @@ -22,12 +22,14 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA lcov-reset: - lcov --directory @top_srcdir@ --zerocounters + lcov --base-directory @top_srcdir@ --directory @top_builddir@ \ + --zerocounters lcov-report: - lcov --directory @top_srcdir@ --capture \ - --output-file @top_builddir@/lcov.info.tmp - lcov --directory @top_srcdir@ --output-file @top_builddir@/lcov.info \ + lcov --base-directory @top_srcdir@/dbus --directory @top_builddir@ \ + --capture --output-file @top_builddir@/lcov.info.tmp + lcov --base-directory @top_srcdir@/dbus --directory @top_builddir@ \ + --output-file @top_builddir@/lcov.info \ --remove @top_builddir@/lcov.info.tmp '*-scan.c' rm @top_builddir@/lcov.info.tmp $(mkdir_p) @top_builddir@/lcov.html -- 1.7.10