From 7798147a7642521055f48e1b27b7024c46c6b446 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 7 Aug 2009 20:50:22 +0000 Subject: Expand test coverage support to entire tree Test coverage support now covers the entire source tree, including contrib, instead of just src/backend. In a related but independent development, the commands make coverage and make coverage-html can be run in any directory. This turned out to be much easier than feared. Besides a few ad hoc fixes to pass the make target down the tree, change all affected makefiles to list their directories in the SUBDIRS variable, changed from variants like DIRS and WANTED_DIRS. MSVC build fix was attempted as well. --- GNUmakefile.in | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'GNUmakefile.in') diff --git a/GNUmakefile.in b/GNUmakefile.in index 56a42ada0f..5262d0ef78 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -1,7 +1,7 @@ # # PostgreSQL top level makefile # -# $PostgreSQL: pgsql/GNUmakefile.in,v 1.50 2009/01/15 01:53:49 momjian Exp $ +# $PostgreSQL: pgsql/GNUmakefile.in,v 1.51 2009/08/07 20:50:21 petere Exp $ # subdir = @@ -20,7 +20,7 @@ install: $(MAKE) -C config $@ @echo "PostgreSQL installation complete." -installdirs uninstall: +installdirs uninstall coverage: $(MAKE) -C doc $@ $(MAKE) -C src $@ $(MAKE) -C config $@ @@ -61,25 +61,6 @@ GNUmakefile: GNUmakefile.in $(top_builddir)/config.status ./config.status $@ -########################################################################## - -coverage: - $(MAKE) -C src/backend $@ - -.PHONY: coverage-html -coverage-html: coverage - rm -rf coverage - mkdir coverage - $(GENHTML) --show-details --legend --output-directory=coverage --title=PostgreSQL --num-spaces=4 --prefix=$(abs_top_srcdir)/src `find src/backend -name lcov.info -print` - -ifeq ($(enable_coverage),yes) -clean distclean maintainer-clean: clean-coverage-local -.PHONY: clean-coverage-local -clean-coverage-local: - rm -rf coverage -endif - - ########################################################################## distdir = postgresql-$(VERSION) -- cgit v1.2.1