1 | PACKAGE = @PACKAGE@ |
---|
2 | VERSION = @VERSION@ |
---|
3 | |
---|
4 | if BUILD_DOCS |
---|
5 | SUBDIRS_DOCS = docs |
---|
6 | else |
---|
7 | SUBDIRS_DOCS = |
---|
8 | endif |
---|
9 | |
---|
10 | if BUILD_TESTS |
---|
11 | SUBDIRS_TESTS = tests testsuite |
---|
12 | else |
---|
13 | SUBDIRS_TESTS = |
---|
14 | endif |
---|
15 | |
---|
16 | if BUILD_EXAMPLES |
---|
17 | SUBDIRS_EXAMPLES = examples |
---|
18 | else |
---|
19 | SUBDIRS_EXAMPLES = |
---|
20 | endif |
---|
21 | |
---|
22 | all-local: gst-element-check-@GST_MAJORMINOR@.m4 |
---|
23 | |
---|
24 | gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4 |
---|
25 | cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4 |
---|
26 | |
---|
27 | ACLOCAL_AMFLAGS = -I common/m4 |
---|
28 | |
---|
29 | aclocaldir = $(datadir)/aclocal |
---|
30 | aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4 |
---|
31 | |
---|
32 | SUBDIRS = \ |
---|
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 |
---|
40 | DIST_SUBDIRS = \ |
---|
41 | include libs gst \ |
---|
42 | tools \ |
---|
43 | tests testsuite \ |
---|
44 | examples \ |
---|
45 | pkgconfig \ |
---|
46 | po \ |
---|
47 | common \ |
---|
48 | docs |
---|
49 | |
---|
50 | win32 = $(shell cat $(top_srcdir)/win32/MANIFEST) |
---|
51 | |
---|
52 | debug: |
---|
53 | echo $(win32) |
---|
54 | EXTRA_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 | |
---|
61 | CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4 |
---|
62 | |
---|
63 | include $(top_srcdir)/idiottest.mak |
---|
64 | include $(top_srcdir)/common/release.mak |
---|
65 | include $(top_srcdir)/common/po.mak |
---|
66 | |
---|
67 | |
---|
68 | if GST_GCOV_ENABLED |
---|
69 | clean-gcov: |
---|
70 | find -name "*.da" -o -name "*.gcov" | xargs rm || true |
---|
71 | |
---|
72 | clean-bbg: |
---|
73 | find -name "*.bbg" -o -name "*.bb" | xargs rm || true |
---|
74 | |
---|
75 | GCOV_DIRS=gst libs |
---|
76 | |
---|
77 | ## .PHONY so it always rebuilds it |
---|
78 | .PHONY: coverage-report.txt |
---|
79 | |
---|
80 | coverage-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 | |
---|
97 | check-coverage: clean-gcov all check coverage-report.txt |
---|
98 | cat coverage-report.txt |
---|
99 | |
---|
100 | else |
---|
101 | coverage-report.txt: |
---|
102 | echo "Need to reconfigure with --enable-gcov" |
---|
103 | |
---|
104 | check-coverage: |
---|
105 | echo "Need to reconfigure with --enable-gcov" |
---|
106 | endif |
---|