1 ## Process this file with automake to produce Makefile.in
2 ACLOCAL_AMFLAGS = -I m4
4 SUBDIRS = gir girepository giscanner tools tests
5 DIST_SUBDIRS = m4 $(SUBDIRS)
6 man_MANS = docs/g-ir-scanner.1
8 pkgconfigdir = $(libdir)/pkgconfig
9 pkgconfig_DATA = gobject-introspection.pc
10 EXTRA_DIST = $(pkgconfig_DATA)
13 GCOV_DIRS = girepository tools
16 find -name "*.gcda" -o -name "*.gcov" -delete
19 find -name "*.gcno" -delete
22 @for dir in $(GCOV_DIRS); do \
23 cd $(abs_srcdir)/$$dir && \
25 gcov -f -p -o `find $(abs_builddir)/$$dir -newer $$file -name "*-$${file/.c/.gcda}" -print0 | sed -e 's/\.gcda/\.o/'` $$file > /dev/null; \
29 coverage-report.txt: clean clean-gcov all check gcov-all
30 @rm -f $(top_builddir)/coverage-report.txt
31 @echo -e "=== Coverage Report ===\n" >> $(top_builddir)/coverage-report.txt
32 @for dir in $(GCOV_DIRS); do \
33 echo "Module '$$dir':" >> $(top_builddir)/coverage-report.txt; \
34 $(MAKE) -C $$dir coverage-report; \
37 check-coverage: coverage-report.txt
38 @cat $(top_builddir)/coverage-report.txt
40 .PHONEY: gcov-all coverage-report.txt
45 @echo "Need to reconfigure with --enable-gcov"