aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-01-22 10:42:55 +0100
committerJelmer Vernooij <jelmer@samba.org>2007-01-22 10:42:55 +0100
commit348c11b16c156979ef2c7141ca7450af693b3713 (patch)
treec4bd8c28bbe8b4d5f09fbfa7166fd89c8f318285
parent7738014d6a9ad81806ddb4e06092791dbd10b616 (diff)
Add lcov target
-rw-r--r--Makefile5
-rw-r--r--lib/Makefile1
-rw-r--r--protocols/Makefile1
-rw-r--r--protocols/jabber/Makefile1
-rw-r--r--protocols/msn/Makefile1
-rw-r--r--protocols/oscar/Makefile1
-rw-r--r--protocols/yahoo/Makefile1
7 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3044d9b2..de9dcecc 100644
--- a/Makefile
+++ b/Makefile
@@ -49,9 +49,14 @@ distclean: clean $(subdirs)
check: all
$(MAKE) -C tests
+lcov:
gcov: check
gcov *.c
+lcov: check
+ lcov --directory . --capture --output-file bitlbee.info
+ genhtml -o coverage bitlbee.info
+
install-doc:
$(MAKE) -C doc install
diff --git a/lib/Makefile b/lib/Makefile
index 33073c27..a9038987 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -17,6 +17,7 @@ LFLAGS += -r
# [SH] Phony targets
all: lib.o
check: all
+lcov:
gcov:
gcov *.c
diff --git a/protocols/Makefile b/protocols/Makefile
index 7f793bc4..f7d76e0f 100644
--- a/protocols/Makefile
+++ b/protocols/Makefile
@@ -26,6 +26,7 @@ LFLAGS += -r
# [SH] Phony targets
all: protocols.o
check: all
+lcov:
gcov:
gcov *.c
diff --git a/protocols/jabber/Makefile b/protocols/jabber/Makefile
index 27a29be4..7a185d00 100644
--- a/protocols/jabber/Makefile
+++ b/protocols/jabber/Makefile
@@ -17,6 +17,7 @@ LFLAGS += -r
# [SH] Phony targets
all: jabber_mod.o
check: all
+lcov:
gcov:
gcov *.c
diff --git a/protocols/msn/Makefile b/protocols/msn/Makefile
index f53b34ba..3440658d 100644
--- a/protocols/msn/Makefile
+++ b/protocols/msn/Makefile
@@ -17,6 +17,7 @@ LFLAGS += -r
# [SH] Phony targets
all: msn_mod.o
check: all
+lcov:
gcov:
gcov *.c
diff --git a/protocols/oscar/Makefile b/protocols/oscar/Makefile
index ed2d7f83..95e85ec2 100644
--- a/protocols/oscar/Makefile
+++ b/protocols/oscar/Makefile
@@ -17,6 +17,7 @@ LFLAGS += -r
# [SH] Phony targets
all: oscar_mod.o
check: all
+lcov:
gcov:
gcov *.c
diff --git a/protocols/yahoo/Makefile b/protocols/yahoo/Makefile
index 34c3551a..2cfd147b 100644
--- a/protocols/yahoo/Makefile
+++ b/protocols/yahoo/Makefile
@@ -17,6 +17,7 @@ LFLAGS += -r
# [SH] Phony targets
all: yahoo_mod.o
check: all
+lcov:
gcov:
gcov *.c