diff options
| author | Marcus Boerger <helly@php.net> | 2005-11-30 22:27:32 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2005-11-30 22:27:32 +0000 |
| commit | ba9f38f8ae33cb7c66c95e4bb4ae67b81a67c28a (patch) | |
| tree | 90357189d224b18be15c3f3aef0a45415dd3f870 /Makefile.gcov | |
| parent | 92fd7f24a5fc8e86a65938237bd1cffa256186b5 (diff) | |
| download | php-git-ba9f38f8ae33cb7c66c95e4bb4ae67b81a67c28a.tar.gz | |
- Make gcov targets work with debian (http://gcov.php.net)
Diffstat (limited to 'Makefile.gcov')
| -rw-r--r-- | Makefile.gcov | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.gcov b/Makefile.gcov index 073163fe6e..03676ef5db 100644 --- a/Makefile.gcov +++ b/Makefile.gcov @@ -7,7 +7,7 @@ lcov: lcov-html lcov-test: all @echo "Running test suite" - @find . -name \*.gcda | xargs rm -f + @find . -name \*.gcda -o -name \*.da -o -name \*.bbg? | xargs rm -f -@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \ NO_INTERACTION=1 \ TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ @@ -29,7 +29,7 @@ php_lcov.info: lcov-test @rm -rf lcov_data/ @$(mkinstalldirs) lcov_data/ @echo - -@find . -name \*.gcda -o -name \*.gcno | sed -e 's/^\.\///' | sed -e 's/\.gcda//g' -e 's/\.gcno//g' | uniq | while read x; do \ + -@find . -name \*.gcda -o -name \*.gcno -o -name \*.da | sed -e 's/^\.\///' | sed -e 's/\.gcda//g' -e 's/\.gcno//g' -e 's/\.da//g' | uniq | while read x; do \ echo -n . ;\ dir=lcov_data/`dirname $$x`; \ test -d "$$dir" || $(mkinstalldirs) "$$dir"; \ @@ -39,11 +39,20 @@ php_lcov.info: lcov-test if test -f "$(top_srcdir)/$$x.re"; then \ ln -f -s $(top_srcdir)/$$x.re lcov_data/$$x.re; \ fi; \ + if test -f "$(top_srcdir)/$$x.y"; then \ + ln -f -s $(top_srcdir)/$$x.y lcov_data/$$x.y; \ + fi; \ + if test -f "$(top_srcdir)/$$x.l"; then \ + ln -f -s $(top_srcdir)/$$x.l lcov_data/$$x.l; \ + fi; \ if test -f "$(top_builddir)/$$x.c"; then \ ln -f -s $(top_builddir)/$$x.c lcov_data/$$x.c; \ fi; \ test -f "$$x.gcno" && cp $$x.gcno lcov_data/ ; \ test -f "$$x.gcda" && cp $$x.gcda lcov_data/ ; \ + test -f "$$x.da" && cp $$x.da lcov_data/ ; \ + test -f "$$x.bb" && cp $$x.bb lcov_data/ ; \ + test -f "$$x.bbg" && cp $$x.bbg lcov_data/ ; \ done @echo @echo "Generating $@" |
