2003-04-05 Havoc Pennington <hp@pobox.com>
[platform/upstream/dbus.git] / Makefile.am
1
2 if HAVE_GLIB
3     GLIB_SUBDIR=glib
4     GLIB_PC=dbus-glib-1.0.pc
5 endif
6
7 if HAVE_QT
8    QT_SUBDIR=qt
9 endif
10
11 SUBDIRS=dbus bus test doc $(GLIB_SUBDIR) $(QT_SUBDIR) 
12
13 pkgconfigdir = $(libdir)/pkgconfig
14 pkgconfig_DATA = dbus-1.0.pc $(GLIB_PC)
15
16 DISTCLEANFILES =                \
17         dbus-1.0.pc             \
18         $(GLIB_PC)
19
20 EXTRA_DIST =                    \
21         HACKING                 \
22         dbus-1.0.pc.in          \
23         dbus-glib-1.0.pc.in
24
25 all-local: Doxyfile
26
27 if DBUS_GCOV_ENABLED
28 clean-gcov:
29         find -name "*.da" -o -name "*.gcov" | xargs rm || true
30
31 ## .PHONY so it always rebuilds it
32 .PHONY: coverage-report.txt
33 coverage-report.txt:
34         GCOV_FILES=`find -name "*.bbg"` ;                                       \
35         C_FILES= ;                                                              \
36         for F in $$GCOV_FILES; do                                               \
37                 C=`echo $$F | sed -e 's/.bbg/.c/g'` ;                           \
38                 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ;                         \
39                 if test -e $$DA ; then                                          \
40                         C_FILES="$$C_FILES $$C" ;                               \
41                 fi ;                                                            \
42         done ;                                                                  \
43         echo $$C_FILES ;                                                        \
44         $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
45
46 check-coverage: clean-gcov all check coverage-report.txt
47         cat coverage-report.txt
48
49 else
50 coverage-report.txt:
51         echo "Need to reconfigure with --enable-gcov"
52
53 check-coverage:
54         echo "Need to reconfigure with --enable-gcov"
55
56 endif