summaryrefslogtreecommitdiff
path: root/Makefile.gcov
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-12-04 17:27:34 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-12-04 17:27:34 +0000
commitb01f5b35f516ac3a83527a6cb82bf800d9491a62 (patch)
tree250f6e031395673d26d7e105ce3937da0a34c05d /Makefile.gcov
parent58c05c04f44391ed7e8f3e450d6c790e5abcfebc (diff)
downloadphp-git-b01f5b35f516ac3a83527a6cb82bf800d9491a62.tar.gz
Fixed gcov for generated files
Diffstat (limited to 'Makefile.gcov')
-rw-r--r--Makefile.gcov21
1 files changed, 11 insertions, 10 deletions
diff --git a/Makefile.gcov b/Makefile.gcov
index 03676ef5db..db69eebb17 100644
--- a/Makefile.gcov
+++ b/Makefile.gcov
@@ -31,22 +31,23 @@ php_lcov.info: lcov-test
@echo
-@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 . ;\
+ y=`echo $$x | sed -e 's!\.libs/!!'`; \
dir=lcov_data/`dirname $$x`; \
test -d "$$dir" || $(mkinstalldirs) "$$dir"; \
- if test -f "$(top_srcdir)/$$x.c"; then \
- ln -f -s $(top_srcdir)/$$x.c lcov_data/$$x.c; \
+ if test -f "$(top_srcdir)/$$y.c"; then \
+ ln -f -s $(top_srcdir)/$$y.c lcov_data/$$y.c; \
fi; \
- if test -f "$(top_srcdir)/$$x.re"; then \
- ln -f -s $(top_srcdir)/$$x.re lcov_data/$$x.re; \
+ if test -f "$(top_srcdir)/$$y.re"; then \
+ ln -f -s $(top_srcdir)/$$y.re lcov_data/$$y.re; \
fi; \
- if test -f "$(top_srcdir)/$$x.y"; then \
- ln -f -s $(top_srcdir)/$$x.y lcov_data/$$x.y; \
+ if test -f "$(top_srcdir)/$$y.y"; then \
+ ln -f -s $(top_srcdir)/$$y.y lcov_data/$$y.y; \
fi; \
- if test -f "$(top_srcdir)/$$x.l"; then \
- ln -f -s $(top_srcdir)/$$x.l lcov_data/$$x.l; \
+ if test -f "$(top_srcdir)/$$y.l"; then \
+ ln -f -s $(top_srcdir)/$$y.l lcov_data/$$y.l; \
fi; \
- if test -f "$(top_builddir)/$$x.c"; then \
- ln -f -s $(top_builddir)/$$x.c lcov_data/$$x.c; \
+ if test -f "$(top_builddir)/$$y.c"; then \
+ ln -f -s $(top_builddir)/$$y.c lcov_data/$$y.c; \
fi; \
test -f "$$x.gcno" && cp $$x.gcno lcov_data/ ; \
test -f "$$x.gcda" && cp $$x.gcda lcov_data/ ; \