From ab0151123c233a670b88013363e3a36483364912 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 10 Aug 2017 23:33:47 -0400 Subject: [PATCH 8/9] Support coverage on vpath builds A few paths needed to be tweaked so everything looks into the appropriate directories. --- src/Makefile.global.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile.global.in b/src/Makefile.global.in index f40b1db0cd..54ea92bbfb 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -881,16 +881,16 @@ GENHTML_TITLE = PostgreSQL $(VERSION) gcno_files = $(shell find . -name '*.gcno' -print) lcov_base.info: $(gcno_files) - $(LCOV) $(LCOVFLAGS) -c -i -d . -o $@ + $(LCOV) $(LCOVFLAGS) -c -i -d . -d $(srcdir) -o $@ gcda_files = $(shell find . -name '*.gcda' -print) lcov_test.info: $(gcda_files) - $(LCOV) $(LCOVFLAGS) -c -d . -o $@ + $(LCOV) $(LCOVFLAGS) -c -d . -d $(srcdir) -o $@ coverage-stamp: lcov_base.info lcov_test.info rm -rf coverage - $(GENHTML) $(GENHTML_FLAGS) -o coverage --title='$(GENHTML_TITLE)' --num-spaces=4 --prefix='$(abs_top_srcdir)' $^ + $(GENHTML) $(GENHTML_FLAGS) -o coverage --title='$(GENHTML_TITLE)' --num-spaces=4 $^ touch $@ .PHONY: coverage coverage-html -- 2.14.0