Skip to content
Browse files

fix lcov processing with gcc 4.1 (some .h files were not copied)

  • Loading branch information...
1 parent 299af46 commit 618e62325e1b7ac94c44d8d4ceecca4bacc63601 @nunoplopes nunoplopes committed Sep 10, 2006
Showing with 4 additions and 1 deletion.
  1. +4 −1 Makefile.gcov
View
5 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; \

0 comments on commit 618e623

Please sign in to comment.
Something went wrong with that request. Please try again.