1 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-docbook
3 all-local: gst-element-check-@GST_MAJORMINOR@.m4
5 gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
6 cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
8 ACLOCAL_AMFLAGS = -I common/m4
10 aclocaldir = $(datadir)/aclocal
11 aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
14 gst libs plugins tools tests \
19 # These are all the possible subdirs
21 gst libs plugins tools tests \
26 win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
32 gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
33 configure.ac autogen.sh depcomp \
37 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
39 include $(top_srcdir)/common/release.mak
40 include $(top_srcdir)/common/po.mak
44 find -name "*.da" -o -name "*.gcov" | xargs rm || true
47 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
51 ## .PHONY so it always rebuilds it
52 .PHONY: coverage-report.txt test-coverage-report.html
55 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
57 for F in $$BBG_FILES ; do \
58 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
59 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
60 B=`basename $$F .bbg` ; \
62 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
63 DA_libs=`echo $$D/.libs/$$B/.da` ; \
64 if test -e $$DA || test -e $$DA_libs; then \
65 C_FILES="$$C_FILES $$C" ; \
69 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
71 test-coverage-report.html:
73 lcov --directory . --zerocounters
75 lcov --directory . --capture --output-file ./coverage/$(PACKAGE).info
76 genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info
78 check-coverage: clean-gcov all check coverage-report.txt
79 cat coverage-report.txt
83 echo "Need to reconfigure with --enable-gcov"
85 test-coverage-report.html:
86 echo "Need to reconfigure with --enable-gcov"
89 echo "Need to reconfigure with --enable-gcov"
94 cd tests/check && make check-valgrind
97 cd tests/check && make torture
100 echo "'check' library not installed, skipping"
103 echo "'check' library not installed, skipping"
106 # FIXME: this target should be run every time we do "make release"
107 # find a way of automating that
109 for f in gstversion.h gstenumtypes.c gstenumtypes.h; do \
110 cp $(top_builddir)/gst/$$f win32/common; done
111 $(top_srcdir)/tools/gst-indent win32/common/gstenumtypes.c