From bb41fa22e3d3b1fe4b3e802ecf7d8041eacda3fd Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 16 Jan 2008 23:21:53 +0000 Subject: [Makefile.am] Further massage lcov paths for srcdir != builddir. The lcov scripts generate incorrect absolute paths to the builddir for source files - so convert them to srcdir using sed. --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index f1dbef01..1c217849 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,8 +35,8 @@ lcov-perf: # we have to massage the lcov.info file slightly to hide the effect of libtool # placing the objects files in the .libs/ directory separate from the *.c genlcov: - $(LTP) --directory $(top_builddir) --capture --output-file cairo-lcov.info --test-name CAIRO_PERF --no-checksum - $(SED) -e 's#.libs/##' < cairo-lcov.info > cairo-lcov.info.tmp + $(LTP) --directory $(top_builddir) --path $(top_builddir) --capture --output-file cairo-lcov.info --test-name CAIRO_TEST --no-checksum + $(SED) -e 's#.libs/##' -e 's#$(shell pwd)#$(shell cd $(top_srcdir) && pwd)#' < cairo-lcov.info > cairo-lcov.info.tmp LANG=C $(LTP_GENHTML) --prefix $(top_builddir) --output-directory cairo-lcov --title "Cairo Code Coverage" --show-details cairo-lcov.info.tmp $(RM) cairo-lcov.info.tmp else -- cgit v1.2.3