temporary local files are .gmo not .mo
[platform/upstream/gstreamer.git] / Makefile.am
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         win32
50
51 win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
52
53 debug:
54         echo $(win32)
55 EXTRA_DIST = \
56         gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
57         configure.ac autogen.sh depcomp \
58         REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL RELEASE \
59         $(win32) \
60         idiottest.mak
61
62 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
63
64 include $(top_srcdir)/idiottest.mak
65 include $(top_srcdir)/common/release.mak
66 include $(top_srcdir)/common/po.mak
67
68
69 if GST_GCOV_ENABLED
70 clean-gcov:
71         find -name "*.da" -o -name "*.gcov" | xargs rm || true
72
73 clean-bbg:
74         find -name "*.bbg" -o -name "*.bb" | xargs rm || true
75
76 GCOV_DIRS=gst libs
77
78 ## .PHONY so it always rebuilds it
79 .PHONY: coverage-report.txt
80
81 coverage-report.txt:
82         BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ;                     \
83         C_FILES= ;                                                        \
84         for F in $$BBG_FILES ; do                                         \
85                 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ;             \
86                 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ;              \
87                 B=`basename $$F .bbg` ;                                   \
88                 D=`dirname $$F` ;                                         \
89                 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ;                   \
90                 DA_libs=`echo $$D/.libs/$$B/.da` ;                        \
91                 if test -e $$DA || test -e $$DA_libs; then                \
92                         C_FILES="$$C_FILES $$C" ;                         \
93                 fi ;                                                      \
94         done ;                                                            \
95         echo $$C_FILES ;                                                  \
96         $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
97
98 check-coverage: clean-gcov all check coverage-report.txt
99         cat coverage-report.txt
100
101 else
102 coverage-report.txt:
103         echo "Need to reconfigure with --enable-gcov"
104
105 check-coverage:
106         echo "Need to reconfigure with --enable-gcov"
107 endif