diff --git a/Makefile b/Makefile index 8d7f82f2d..eceee81c6 100644 --- a/Makefile +++ b/Makefile @@ -110,7 +110,7 @@ WARNINGS := -Wall -Wformat-security CFLAGS-GCOV := --coverage -fno-exceptions -fno-inline export CFLAGS-GCOV -ifeq ($(GCOV),1) +ifneq ($(GCOV),) LDFLAGS += -lgcov CFLAGS += $(CFLAGS-GCOV) endif diff --git a/scripts/travis/travis-after_success b/scripts/travis/travis-after_success index 05322eff4..bc0888a7e 100755 --- a/scripts/travis/travis-after_success +++ b/scripts/travis/travis-after_success @@ -2,7 +2,7 @@ set -x -e # We only need to run the below for gcov-enabled builds -[ "$GCOV" = "1" ] || exit 0 +test -z "$GCOV" && exit 0 sudo apt-get install -qq -y lcov gem install coveralls-lcov