- document --enable-kqueue
[platform/upstream/dbus.git] / Makefile.am
1 SUBDIRS=dbus bus doc tools test
2 DIST_SUBDIRS=dbus bus doc tools test
3
4 pkgconfigdir = $(libdir)/pkgconfig
5 pkgconfig_DATA = dbus-1.pc 
6
7 DISTCLEANFILES =                \
8         dbus-1.pc
9
10 EXTRA_DIST =                    \
11         HACKING                 \
12         dbus-1.pc.in
13
14 all-local: Doxyfile
15
16 if DBUS_GCOV_ENABLED
17 clean-gcov:
18         find -name "*.da" -o -name "*.gcov" | xargs rm || true
19
20 clean-bbg:
21         find -name "*.bbg" -o -name "*.bb" | xargs rm || true
22
23 GCOV_DIRS=dbus bus
24
25 ## .PHONY so it always rebuilds it
26 .PHONY: coverage-report.txt
27 coverage-report.txt:
28         BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg" -o -name "*.gcno"` ;                 \
29         C_FILES= ;                                                                      \
30         for F in $$BBG_FILES ; do                                                       \
31                 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ;                           \
32                 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g' | sed -e 's/.gcno/.c/g'`  ;   \
33                 B=`basename $$F .bbg` ;                                                 \
34                 D=`dirname $$F` ;                                                       \
35                 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ;                                 \
36                 DA_libs=`echo $$D/.libs/$$B/.da` ;                                      \
37                 if test -e $$DA || test -e $$DA_libs; then                              \
38                         C_FILES="$$C_FILES $$C" ;                                       \
39                 fi ;                                                                    \
40         done ;                                                                          \
41         echo $$C_FILES ;                                                                \
42         $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
43
44 check-coverage: clean-gcov all check coverage-report.txt
45         cat coverage-report.txt
46
47 else
48 coverage-report.txt:
49         echo "Need to reconfigure with --enable-gcov"
50
51 check-coverage:
52         echo "Need to reconfigure with --enable-gcov"
53
54 endif