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 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 \
33 gst-element-check.m4.in \
34 configure.ac autogen.sh depcomp \
35 MAINTAINERS ABOUT-NLS RELEASE gstreamer.doap \
38 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
40 include $(top_srcdir)/common/release.mak
41 include $(top_srcdir)/common/po.mak
45 find -name "*.da" -o -name "*.gcov" | xargs rm || true
48 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
52 ## .PHONY so it always rebuilds it
53 .PHONY: coverage-report.txt test-coverage-report.html lcov
56 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
58 for F in $$BBG_FILES ; do \
59 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
60 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
61 B=`basename $$F .bbg` ; \
63 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
64 DA_libs=`echo $$D/.libs/$$B/.da` ; \
65 if test -e $$DA || test -e $$DA_libs; then \
66 C_FILES="$$C_FILES $$C" ; \
70 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
72 test-coverage-report.html:
74 lcov --directory . --zerocounters
76 lcov --directory . --capture --output-file ./coverage/$(PACKAGE).info
77 genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info
79 check-coverage: clean-gcov all check coverage-report.txt
80 cat coverage-report.txt
84 echo "Need to reconfigure with --enable-gcov"
86 test-coverage-report.html:
87 echo "Need to reconfigure with --enable-gcov"
90 echo "Need to reconfigure with --enable-gcov"
95 cd tests/check && make check-valgrind
98 cd tests/check && make torture
101 echo "'check' library not installed, skipping"
104 echo "'check' library not installed, skipping"
107 # FIXME: this target should be run every time we do "make release"
108 # find a way of automating that
110 for f in gstversion.h gstenumtypes.c gstenumtypes.h; do \
111 cp $(top_builddir)/gst/$$f win32/common; done
112 $(top_srcdir)/tools/gst-indent win32/common/gstenumtypes.c
114 include $(top_srcdir)/common/coverage/lcov.mak