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
33 include gst libs tools \
34 $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) \
39 # These are all the possible subdirs
51 win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
56 gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
57 configure.ac autogen.sh depcomp \
58 REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL RELEASE \
62 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
64 include $(top_srcdir)/idiottest.mak
65 include $(top_srcdir)/common/release.mak
66 include $(top_srcdir)/common/po.mak
71 find -name "*.da" -o -name "*.gcov" | xargs rm || true
74 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
78 ## .PHONY so it always rebuilds it
79 .PHONY: coverage-report.txt
82 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
84 for F in $$BBG_FILES ; do \
85 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
86 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
87 B=`basename $$F .bbg` ; \
89 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
90 DA_libs=`echo $$D/.libs/$$B/.da` ; \
91 if test -e $$DA || test -e $$DA_libs; then \
92 C_FILES="$$C_FILES $$C" ; \
96 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
98 check-coverage: clean-gcov all check coverage-report.txt
99 cat coverage-report.txt
103 echo "Need to reconfigure with --enable-gcov"
106 echo "Need to reconfigure with --enable-gcov"