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