67abb18f1eb675ab24e589f63958bb15ae8fbcb1
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
13 SUBDIRS = \
14 gst libs plugins tools tests \
15 docs \
16 pkgconfig po \
17 common
19 # These are all the possible subdirs
20 DIST_SUBDIRS = \
21 gst libs plugins tools tests \
22 docs \
23 pkgconfig po \
24 common
26 win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
28 debug:
29 echo $(win32)
31 EXTRA_DIST = \
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 \
36 $(win32)
38 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
40 include $(top_srcdir)/common/release.mak
41 include $(top_srcdir)/common/po.mak
43 if GST_GCOV_ENABLED
44 clean-gcov:
45 find -name "*.da" -o -name "*.gcov" | xargs rm || true
47 clean-bbg:
48 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
50 GCOV_DIRS=gst libs
52 ## .PHONY so it always rebuilds it
53 .PHONY: coverage-report.txt test-coverage-report.html lcov
55 coverage-report.txt:
56 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
57 C_FILES= ; \
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` ; \
62 D=`dirname $$F` ; \
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" ; \
67 fi ; \
68 done ; \
69 echo $$C_FILES ; \
70 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
72 test-coverage-report.html:
73 mkdir -p ./coverage
74 lcov --directory . --zerocounters
75 -$(MAKE) check
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
82 else
83 coverage-report.txt:
84 echo "Need to reconfigure with --enable-gcov"
86 test-coverage-report.html:
87 echo "Need to reconfigure with --enable-gcov"
89 check-coverage:
90 echo "Need to reconfigure with --enable-gcov"
91 endif
93 if HAVE_CHECK
94 check-valgrind:
95 cd tests/check && make check-valgrind
97 check-torture:
98 cd tests/check && make torture
99 else
100 check-valgrind:
101 echo "'check' library not installed, skipping"
103 check-torture:
104 echo "'check' library not installed, skipping"
105 endif
107 # FIXME: this target should be run every time we do "make release"
108 # find a way of automating that
109 win32-update:
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