Squash warnings and spurious output from autogen.sh
[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         cleanup-man-pages.sh    \
14         ChangeLog.pre-1-0       \
15         NEWS.pre-1-0            \
16         ChangeLog.pre-1-2       \
17         NEWS.pre-1-2            \
18         README.windbus          \
19         cmake
20
21 all-local: Doxyfile
22
23 if DBUS_GCOV_ENABLED
24 clean-gcov:
25         find -name "*.da" -o -name "*.gcov" | xargs rm || true
26
27 clean-bbg:
28         find -name "*.bbg" -o -name "*.bb" | xargs rm || true
29
30 GCOV_DIRS=dbus bus
31
32 ## .PHONY so it always rebuilds it
33 .PHONY: coverage-report.txt
34 coverage-report.txt:
35         BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg" -o -name "*.gcno"` ;                 \
36         C_FILES= ;                                                                      \
37         for F in $$BBG_FILES ; do                                                       \
38                 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ;                           \
39                 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g' | sed -e 's/.gcno/.c/g'`  ;   \
40                 B=`basename $$F .bbg` ;                                                 \
41                 D=`dirname $$F` ;                                                       \
42                 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ;                                 \
43                 DA_libs=`echo $$D/.libs/$$B/.da` ;                                      \
44                 if test -e $$DA || test -e $$DA_libs; then                              \
45                         C_FILES="$$C_FILES $$C" ;                                       \
46                 fi ;                                                                    \
47         done ;                                                                          \
48         echo $$C_FILES ;                                                                \
49         $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
50
51 check-coverage: clean-gcov all check coverage-report.txt
52         cat coverage-report.txt
53
54 else
55 coverage-report.txt:
56         echo "Need to reconfigure with --enable-gcov"
57
58 check-coverage:
59         echo "Need to reconfigure with --enable-gcov"
60
61 endif
62
63 update-authors:
64         git shortlog -s -e | cut -c 8- | sort > AUTHORS
65
66 DISTCHECK_CONFIGURE_FLAGS = \
67         --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
68
69 ACLOCAL_AMFLAGS = -I m4