Add data type constants
[platform/upstream/gobject-introspection.git] / gcov.mak
1 if GI_GCOV_ENABLED
2
3 .PHONEY: coverage-report
4 coverage-report:
5         @total_covered=0; total_lines=0; \
6         for file in $(GCOVSOURCES); do \
7                 if test -f $$file.gcov; then \
8                         covered=`grep -e '[0-9]\+:' $$file.gcov | wc -l` ; \
9                         uncovered=`grep '#####:' $$file.gcov | wc -l`; \
10                         lines=$$(($$covered + $$uncovered)); \
11                         total_covered=$$((total_covered + covered)); \
12                         total_lines=$$((total_lines + lines)); \
13                         echo -n "    $$file: $$covered / $$lines"; \
14                         echo " ($$((($$covered * 100) / $$lines))%)"; \
15                 fi \
16         done >> $(top_builddir)/coverage-report.txt; \
17         echo -e "  Total coverage:"\
18              "$$((($$total_covered * 100) / $$total_lines))%\n" \
19              >> $(top_builddir)/coverage-report.txt
20
21 endif