Fix build not to always use code coverage.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 17 Apr 2008 12:20:46 +0000 (14:20 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 17 Apr 2008 12:20:46 +0000 (14:20 +0200)
Somehow, the way this was structured before always did a gcov build.

Andrew Bartlett
(This used to be commit 052edb786418f161272a41025f8b6eee93bb433d)

source4/torture/config.mk

index c2ec7c573a77da6b534ae58b94b6d44d7945a4c4..2f3fa38863f8f371dce974d43b128497ea5a2057 100644 (file)
@@ -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