11 SUBDIRS_TESTS = tests testsuite
17 SUBDIRS_EXAMPLES = examples
22 all-local: gst-element-check-@GST_MAJORMINOR@.m4
24 gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
25 cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
27 ACLOCAL_AMFLAGS = -I common/m4
29 aclocaldir = $(datadir)/aclocal
30 aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
32 SUBDIRS = include gst libs tools \
33 $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) \
38 # These are all the possible subdirs
39 DIST_SUBDIRS = include libs gst \
48 EXTRA_DIST = gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
49 configure.ac autogen.sh depcomp \
50 REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL RELEASE \
53 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
55 include $(top_srcdir)/idiottest.mak
56 include $(top_srcdir)/common/release.mak
57 include $(top_srcdir)/common/po.mak
62 find -name "*.da" -o -name "*.gcov" | xargs rm || true
65 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
69 ## .PHONY so it always rebuilds it
70 .PHONY: coverage-report.txt
73 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
75 for F in $$BBG_FILES ; do \
76 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
77 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
78 B=`basename $$F .bbg` ; \
80 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
81 DA_libs=`echo $$D/.libs/$$B/.da` ; \
82 if test -e $$DA || test -e $$DA_libs; then \
83 C_FILES="$$C_FILES $$C" ; \
87 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
89 check-coverage: clean-gcov all check coverage-report.txt
90 cat coverage-report.txt
94 echo "Need to reconfigure with --enable-gcov"
97 echo "Need to reconfigure with --enable-gcov"