Limit cleanup of .gc{no,da} files to src and scripts subfolders
authorMartin Willi <martin@revosec.ch>
Tue, 11 Jun 2013 15:27:40 +0000 (17:27 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 21 Jun 2013 08:53:21 +0000 (10:53 +0200)
Other folders in the build tree might not be related to the strongSwan tree,
or are not even accessible.

Makefile.am

index d9bae5f..3a905f2 100644 (file)
@@ -39,7 +39,7 @@ apidoc :      Doxyfile
 
 cov-reset-common:
                @rm -rf $(top_builddir)/coverage
-               @find $(top_builddir) -name "*.gcda" -delete
+               @find $(top_builddir)/{src,scripts} -name "*.gcda" -delete
 
 if COVERAGE
 cov-reset: cov-reset-common
@@ -67,7 +67,7 @@ coverage:
 endif
 
 clean-local: cov-reset-common
-               @find $(top_builddir) -name "*.gcno" -delete
+               @find $(top_builddir)/{src,scripts} -name "*.gcno" -delete
                @rm -rf apidoc
 
 .PHONY: cov-reset-common cov-reset cov-report coverage
\ No newline at end of file