summaryrefslogtreecommitdiff
path: root/Makefile.gcov
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2006-09-10 12:37:44 +0000
committerNuno Lopes <nlopess@php.net>2006-09-10 12:37:44 +0000
commit618e62325e1b7ac94c44d8d4ceecca4bacc63601 (patch)
tree65e9ededfadcd8127d82fadca5a84644d6bffb84 /Makefile.gcov
parent299af461469000a3e27c99790fa44f78fa5ee0ee (diff)
downloadphp-git-618e62325e1b7ac94c44d8d4ceecca4bacc63601.tar.gz
fix lcov processing with gcc 4.1 (some .h files were not copied)
Diffstat (limited to 'Makefile.gcov')
-rw-r--r--Makefile.gcov5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.gcov b/Makefile.gcov
index 1cf5455a21..57018b60be 100644
--- a/Makefile.gcov
+++ b/Makefile.gcov
@@ -29,7 +29,7 @@ php_lcov.info: lcov-test
@rm -rf lcov_data/
@$(mkinstalldirs) lcov_data/
@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 \
+ -@find . -name \*.gcda -o -name \*.gcno -o -name \*.da -o -name \*.h | 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`; \
@@ -49,6 +49,9 @@ php_lcov.info: lcov-test
if test -f "$(top_srcdir)/$$y.l"; then \
ln -f -s $(top_srcdir)/$$y.l lcov_data/$$y.l; \
fi; \
+ if test -f "$(top_srcdir)/$$y"; then \
+ ln -f -s $(top_srcdir)/$$y lcov_data/$$y; \
+ fi; \
if test -f "$(top_builddir)/$$y.c"; then \
ln -f -s $(top_builddir)/$$y.c lcov_data/$$y.c; \
fi; \