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
50 win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
55 gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
56 configure.ac autogen.sh depcomp \
57 REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL RELEASE \
61 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
63 include $(top_srcdir)/idiottest.mak
64 include $(top_srcdir)/common/release.mak
65 include $(top_srcdir)/common/po.mak
70 find -name "*.da" -o -name "*.gcov" | xargs rm || true
73 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
77 ## .PHONY so it always rebuilds it
78 .PHONY: coverage-report.txt
81 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
83 for F in $$BBG_FILES ; do \
84 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
85 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
86 B=`basename $$F .bbg` ; \
88 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
89 DA_libs=`echo $$D/.libs/$$B/.da` ; \
90 if test -e $$DA || test -e $$DA_libs; then \
91 C_FILES="$$C_FILES $$C" ; \
95 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
97 check-coverage: clean-gcov all check coverage-report.txt
98 cat coverage-report.txt
102 echo "Need to reconfigure with --enable-gcov"
105 echo "Need to reconfigure with --enable-gcov"