[Pcre-svn] [1181] code/trunk/Makefile.am: build: Add target …

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [1181] code/trunk/Makefile.am: build: Add target to just clean the *. gcda files
Revision: 1181
          http://vcs.pcre.org/viewvc?view=rev&revision=1181
Author:   chpe
Date:     2012-10-27 19:04:36 +0100 (Sat, 27 Oct 2012)


Log Message:
-----------
build: Add target to just clean the *.gcda files

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


Modified: code/trunk/Makefile.am
===================================================================
--- code/trunk/Makefile.am    2012-10-27 17:58:43 UTC (rev 1180)
+++ code/trunk/Makefile.am    2012-10-27 18:04:36 UTC (rev 1181)
@@ -763,6 +763,8 @@
 # coverage-report: This creates the coverage report only
 # coverage-clean-report: This removes the generated coverage report
 #   without cleaning the coverage data itself
+# coverage-clean-data: This removes the captured coverage data without
+#   removing the coverage files created at compile time (*.gcno)
 # coverage-clean: This cleans all coverage data including the generated
 #   coverage report.


@@ -820,16 +822,19 @@
     -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
     -rm -rf "$(COVERAGE_OUTPUT_DIR)"


-coverage-clean: coverage-reset coverage-clean-report
-    -find $(top_builddir) -name "*.gcda" -or -name "*.gcno" -delete
+coverage-clean-data:
+    -find $(top_builddir) -name "*.gcda" -delete


+coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
+    -find $(top_builddir) -name "*.gcno" -delete
+
 coverage-distclean: coverage-clean


-coverage: coverage-baseline coverage-check coverage-report
+coverage: coverage-reset coverage-baseline coverage-check coverage-report
clean-local: coverage-clean
distclean-local: coverage-distclean

-.PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean coverage-distclean
+.PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean

else