summaryrefslogtreecommitdiff
path: root/GNUmakefile.in
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2009-08-07 20:50:22 +0000
committerPeter Eisentraut <peter_e@gmx.net>2009-08-07 20:50:22 +0000
commit7798147a7642521055f48e1b27b7024c46c6b446 (patch)
tree4464257703236148eee73a44244b5bc10f6b6f95 /GNUmakefile.in
parente605fbcccdf4705de4afa7e23be5b8222e1cb00d (diff)
downloadpostgresql-7798147a7642521055f48e1b27b7024c46c6b446.tar.gz
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.
Diffstat (limited to 'GNUmakefile.in')
-rw-r--r--GNUmakefile.in23
1 files changed, 2 insertions, 21 deletions
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 $@
@@ -63,25 +63,6 @@ GNUmakefile: GNUmakefile.in $(top_builddir)/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)
dummy = =install=
garbage = =* "#"* ."#"* *~* *.orig *.rej core postgresql-*