summaryrefslogtreecommitdiff
path: root/GNUmakefile.in
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2008-09-05 12:11:18 +0000
committerPeter Eisentraut <peter_e@gmx.net>2008-09-05 12:11:18 +0000
commit11f53b1063e796dbb766b7ad3fd46e98806bea43 (patch)
treee77ab3e271f7d464e88e481715997a09bde14e65 /GNUmakefile.in
parent579d9a520135078d96eef8335aed399833d33b7e (diff)
downloadpostgresql-11f53b1063e796dbb766b7ad3fd46e98806bea43.tar.gz
Code coverage testing with gcov. Documentation is in the regression test
chapter. Author: Michelle Caisse <Michelle.Caisse@Sun.COM>
Diffstat (limited to 'GNUmakefile.in')
-rw-r--r--GNUmakefile.in21
1 files changed, 20 insertions, 1 deletions
diff --git a/GNUmakefile.in b/GNUmakefile.in
index c71f8a6088..4335c12b00 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -1,7 +1,7 @@
#
# PostgreSQL top level makefile
#
-# $PostgreSQL: pgsql/GNUmakefile.in,v 1.47 2008/03/18 16:24:50 petere Exp $
+# $PostgreSQL: pgsql/GNUmakefile.in,v 1.48 2008/09/05 12:11:17 petere Exp $
#
subdir =
@@ -63,6 +63,25 @@ 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 `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-*