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 # include before EXTRA_DIST for win32 assignment
27 include $(top_srcdir)/common/win32.mak
30 gstreamer.spec gstreamer.spec.in \
31 gst-element-check.m4.in \
32 configure.ac autogen.sh depcomp \
33 MAINTAINERS ABOUT-NLS RELEASE gstreamer.doap \
36 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
38 include $(top_srcdir)/common/release.mak
39 include $(top_srcdir)/common/po.mak
43 find -name "*.da" -o -name "*.gcov" | xargs rm || true
46 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
50 ## .PHONY so it always rebuilds it
51 .PHONY: coverage-report.txt
54 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
56 for F in $$BBG_FILES ; do \
57 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
58 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
59 B=`basename $$F .bbg` ; \
61 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
62 DA_libs=`echo $$D/.libs/$$B/.da` ; \
63 if test -e $$DA || test -e $$DA_libs; then \
64 C_FILES="$$C_FILES $$C" ; \
68 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
70 check-coverage: clean-gcov all check coverage-report.txt
71 cat coverage-report.txt
75 echo "Need to reconfigure with --enable-gcov"
78 echo "Need to reconfigure with --enable-gcov"
83 cd tests/check && make check-valgrind
86 cd tests/check && make torture
89 echo "'check' library not installed, skipping"
92 echo "'check' library not installed, skipping"
95 # FIXME: this target should be run every time we do "make release"
96 # find a way of automating that
98 for f in gstversion.h gstenumtypes.c gstenumtypes.h; do \
99 cp $(top_builddir)/gst/$$f win32/common; done
100 $(top_srcdir)/tools/gst-indent win32/common/gstenumtypes.c
101 cp $(top_builddir)/win32/common/config.h-new \
102 $(top_srcdir)/win32/common/config.h
104 check-enum-gettypes: $(top_builddir)/gst/gstenumtypes.h
105 echo 'Checking if all enum and flag _get_type() funcs are inited in gst_init()'; \
106 FUNCS=`grep '_get_type (' gst/gstenumtypes.h | sed -e 's/^.*gst_/gst_/' -e 's/_get_type.*$$/_get_type/'`;\
108 for f in $$FUNCS; do \
109 INIT_LINE=`grep $$f gst/*.c | grep g_type_class_ref`; \
110 if test "x$$INIT_LINE" = "x"; then \
111 MISSING_FUNCS="$$MISSING_FUNCS $$f"; \
114 if test "x$$MISSING_FUNCS" != "x"; then \
115 echo "FIXME: please add to the following to gst/gst.c init_post():"; \
116 for f in $$MISSING_FUNCS; do \
117 echo " g_type_class_ref ($$f ());"; \
122 include $(top_srcdir)/common/coverage/lcov.mak
124 check: check-exports check-enum-gettypes