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) \
37 # These are all the possible subdirs
38 DIST_SUBDIRS = include libs gst \
46 EXTRA_DIST = gstreamer.spec.in gst-element-check.m4 \
47 configure.ac autogen.sh depcomp \
48 REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL \
51 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
54 # to do a release, run "make release"
55 # this will generate all archives and md5sums
58 AUTOMAKE_OPTIONS = dist-bzip2
61 make @PACKAGE@-@VERSION@.tar.gz.md5
62 make @PACKAGE@-@VERSION@.tar.bz2.md5
64 # generate md5 sum files
69 cp gstreamer.spec $(distdir)
70 rm -rf `find $(distdir)/common -name CVS`
73 rpm -ta $(distdir).tar.gz
75 include $(top_srcdir)/idiottest.mak
80 find -name "*.da" -o -name "*.gcov" | xargs rm || true
83 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
87 ## .PHONY so it always rebuilds it
88 .PHONY: coverage-report.txt
90 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
92 for F in $$BBG_FILES ; do \
93 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
94 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
95 B=`basename $$F .bbg` ; \
97 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
98 DA_libs=`echo $$D/.libs/$$B/.da` ; \
99 if test -e $$DA || test -e $$DA_libs; then \
100 C_FILES="$$C_FILES $$C" ; \
104 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
106 check-coverage: clean-gcov all check coverage-report.txt
107 cat coverage-report.txt
111 echo "Need to reconfigure with --enable-gcov"
114 echo "Need to reconfigure with --enable-gcov"