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