source: trunk/third/gstreamer/Makefile.am @ 21005

Revision 21005, 2.3 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21004, which included commits to RCS files with non-trunk default branches.
Line 
1PACKAGE = @PACKAGE@
2VERSION = @VERSION@
3
4if BUILD_DOCS
5SUBDIRS_DOCS = docs
6else
7SUBDIRS_DOCS =
8endif
9
10if BUILD_TESTS
11SUBDIRS_TESTS = tests testsuite
12else
13SUBDIRS_TESTS =
14endif
15
16if BUILD_EXAMPLES
17SUBDIRS_EXAMPLES = examples
18else
19SUBDIRS_EXAMPLES =
20endif
21
22all-local: gst-element-check-@GST_MAJORMINOR@.m4
23
24gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
25        cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
26
27ACLOCAL_AMFLAGS = -I common/m4
28
29aclocaldir = $(datadir)/aclocal
30aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
31
32SUBDIRS = \
33        include gst libs tools \
34        $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) \
35        pkgconfig po \
36        common \
37        $(SUBDIRS_DOCS)
38
39# These are all the possible subdirs
40DIST_SUBDIRS = \
41        include libs gst \
42        tools \
43        tests testsuite \
44        examples \
45        pkgconfig \
46        po \
47        common \
48        docs
49
50win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
51
52debug:
53        echo $(win32)
54EXTRA_DIST = \
55        gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
56        configure.ac autogen.sh depcomp \
57        REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL RELEASE \
58        $(win32) \
59        idiottest.mak
60
61CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
62
63include $(top_srcdir)/idiottest.mak
64include $(top_srcdir)/common/release.mak
65include $(top_srcdir)/common/po.mak
66
67
68if GST_GCOV_ENABLED
69clean-gcov:
70        find -name "*.da" -o -name "*.gcov" | xargs rm || true
71
72clean-bbg:
73        find -name "*.bbg" -o -name "*.bb" | xargs rm || true
74
75GCOV_DIRS=gst libs
76
77## .PHONY so it always rebuilds it
78.PHONY: coverage-report.txt
79
80coverage-report.txt:
81        BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ;                     \
82        C_FILES= ;                                                        \
83        for F in $$BBG_FILES ; do                                         \
84                F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ;             \
85                C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ;              \
86                B=`basename $$F .bbg` ;                                   \
87                D=`dirname $$F` ;                                         \
88                DA=`echo $$F | sed -e 's/.bbg/.da/g'` ;                   \
89                DA_libs=`echo $$D/.libs/$$B/.da` ;                        \
90                if test -e $$DA || test -e $$DA_libs; then                \
91                        C_FILES="$$C_FILES $$C" ;                         \
92                fi ;                                                      \
93        done ;                                                            \
94        echo $$C_FILES ;                                                  \
95        $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
96
97check-coverage: clean-gcov all check coverage-report.txt
98        cat coverage-report.txt
99
100else
101coverage-report.txt:
102        echo "Need to reconfigure with --enable-gcov"
103
104check-coverage:
105        echo "Need to reconfigure with --enable-gcov"
106endif
Note: See TracBrowser for help on using the repository browser.