From: David Levine Date: Sat, 17 Mar 2012 19:33:43 +0000 (-0500) Subject: In gcov target, added warning if configured with --enable-debug. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=2d3d6cb7011b7fe432ffda2889e1f27860c49f37;p=mmh In gcov target, added warning if configured with --enable-debug. While gcov will work with it, it won't reflect optimizations that are disabled with that option. --- diff --git a/Makefile.am b/Makefile.am index 2dbab2f..def76cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -572,6 +572,9 @@ cscope: ## targets because they will be used so infrequently, if at all. ## gcov: + @if ./config.status --config | grep -e --enable-debug >/dev/null; then \ + echo For best results with gcov, should configure \ + without --enable-debug; fi @echo rebuilding with AM_CLFAGS=--coverage . . . @(make clean && make AM_CFLAGS=--coverage) > /dev/null && make check @for i in `find . -name '*.gcda'`; do \