summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-04-17 14:20:46 +0200
committerAndrew Bartlett <abartlet@samba.org>2008-04-17 14:20:46 +0200
commit0b4c401f06a69cafb663ba07ce6b2c7946c2c0fa (patch)
tree6e346b49de63bf06843aca2f71b5c13dd061eb3a /source4
parentdd0da89e841e5df0c1fe27122df0c1644278c65e (diff)
downloadsamba-0b4c401f06a69cafb663ba07ce6b2c7946c2c0fa.tar.gz
samba-0b4c401f06a69cafb663ba07ce6b2c7946c2c0fa.tar.bz2
samba-0b4c401f06a69cafb663ba07ce6b2c7946c2c0fa.zip
Fix build not to always use code coverage.
Somehow, the way this was structured before always did a gcov build. Andrew Bartlett (This used to be commit 052edb786418f161272a41025f8b6eee93bb433d)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/config.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/torture/config.mk b/source4/torture/config.mk
index c2ec7c573a..2f3fa38863 100644
--- a/source4/torture/config.mk
+++ b/source4/torture/config.mk
@@ -313,19 +313,21 @@ locktest_OBJ_FILES = torture/locktest.o
MANPAGES += torture/man/locktest.1
+GCOV=0
+
ifeq ($(MAKECMDGOALS),gcov)
-GCOV?=1
+GCOV=1
endif
ifeq ($(MAKECMDGOALS),lcov)
-GCOV?=1
+GCOV=1
endif
ifeq ($(MAKECMDGOALS),testcov-html)
-GCOV?=1
+GCOV=1
endif
-ifdef GCOV
+ifeq ($(GCOV),1)
CFLAGS += --coverage
LDFLAGS += --coverage
endif