[Pcre-svn] [1161] code/trunk/Makefile.am: build: Hide gcov r…

Kezdőlap
Üzenet törlése
Szerző: Subversion repository
Dátum:  
Címzett: pcre-svn
Tárgy: [Pcre-svn] [1161] code/trunk/Makefile.am: build: Hide gcov rules when not building with coverage enabled
Revision: 1161
          http://vcs.pcre.org/viewvc?view=rev&revision=1161
Author:   chpe
Date:     2012-10-22 23:05:07 +0100 (Mon, 22 Oct 2012)


Log Message:
-----------
build: Hide gcov rules when not building with coverage enabled

Problem pointed out by Daniel Richard G. on the mailing list.

Modified Paths:
--------------
    code/trunk/Makefile.am


Modified: code/trunk/Makefile.am
===================================================================
--- code/trunk/Makefile.am    2012-10-22 22:05:03 UTC (rev 1160)
+++ code/trunk/Makefile.am    2012-10-22 22:05:07 UTC (rev 1161)
@@ -735,6 +735,8 @@


# gcov/lcov code coverage reporting

+if WITH_GCOV
+
GCOV_NAME ?= $(PACKAGE)-$(VERSION)
GCOV_OUTPUT_FILE ?= $(GCOV_NAME)-coverage.info
GCOV_OUTPUT_DIR ?= $(GCOV_NAME)-coverage
@@ -785,6 +787,13 @@
clean-local: coverage-clean
distclean-local: coverage-clean

+else
+
+coverage:
+    @echo "Configuring with --enable-coverage required to generate code coverage report."
+
+endif # WITH_GCOV
+
 ## CMake support


EXTRA_DIST += \