Add data type constants
[platform/upstream/gobject-introspection.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 ACLOCAL_AMFLAGS = -I m4
3
4 SUBDIRS = gir girepository giscanner tools tests
5 DIST_SUBDIRS = m4 $(SUBDIRS)
6 man_MANS = docs/g-ir-scanner.1
7
8 pkgconfigdir = $(libdir)/pkgconfig
9 pkgconfig_DATA = gobject-introspection.pc
10 EXTRA_DIST = $(pkgconfig_DATA)
11
12 if GI_GCOV_ENABLED
13 GCOV_DIRS = girepository tools
14
15 clean-gcov:
16         find  -name "*.gcda" -o -name "*.gcov" -delete
17
18 clean-gcno:
19         find  -name "*.gcno" -delete
20
21 gcov-all:
22         @for dir in $(GCOV_DIRS); do \
23                 cd $(abs_srcdir)/$$dir && \
24                 for file in *.c; do \
25                         gcov -f -p -o `find $(abs_builddir)/$$dir -newer $$file -name "*-$${file/.c/.gcda}" -print0 | sed -e 's/\.gcda/\.o/'` $$file > /dev/null; \
26                 done \
27         done
28
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; \
35         done
36
37 check-coverage: coverage-report.txt
38         @cat $(top_builddir)/coverage-report.txt
39
40 .PHONEY: gcov-all coverage-report.txt
41
42 else
43
44 check-coverage:
45         @echo "Need to reconfigure with --enable-gcov"
46
47 endif