only build if you have check
[platform/upstream/gstreamer.git] / Makefile.am
1 if USE_GCONFTOOL
2 SUBDIRS_GCONF = gconf
3 else
4 SUBDIRS_GCONF =
5 endif
6
7 if BUILD_EXTERNAL
8 SUBDIRS_EXT = ext
9 else
10 SUBDIRS_EXT =
11 endif
12
13 if BUILD_EXAMPLES
14 SUBDIRS_EXAMPLES = examples
15 else
16 SUBDIRS_EXAMPLES =
17 endif
18
19 if HAVE_CHECK
20 SUBDIRS_CHECK = check
21 else
22 SUBDIRS_CHECK =
23 endif
24
25 SUBDIRS =                       \
26         gst-libs                \
27         gst sys $(SUBDIRS_EXT)  \
28         $(SUBDIRS_EXAMPLES)     \
29         tools                   \
30         $(SUBDIRS_GCONF)        \
31         $(SUBDIRS_CHECK)        \
32         docs                    \
33         po                      \
34         common                  \
35         m4                      \
36         pkgconfig
37
38 DIST_SUBDIRS =                  \
39         check                   \
40         docs                    \
41         gst-libs                \
42         gst sys ext             \
43         examples                \
44         tools                   \
45         gconf                   \
46         po                      \
47         common                  \
48         m4                      \
49         pkgconfig
50
51 EXTRA_DIST = \
52         gst-plugins-base.spec depcomp \
53         AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS \
54         ChangeLog autogen.sh
55
56 DISTCLEANFILES = _stdint.h
57
58 # check that no marshal or enumtypes files are included
59 # this in turn ensures that distcheck fails for missing .list files which is currently
60 # shadowed when the corresponding .c and .h files are included.
61 distcheck-hook:
62         @test "x" = "x`find $(distdir) -name \*-enumtypes.[ch]`" && \
63         test "x" = "x`find $(distdir) -name \*-marshal.[ch]`" || \
64         ( $(ECHO) "*** Leftover enumtypes or marshal files in the tarball." && \
65           $(ECHO) "*** Make sure the following files are not disted:" && \
66           find $(distdir) -name \*-enumtypes.[ch] && \
67           find $(distdir) -name \*-marshal.[ch] && \
68           false )
69
70 include $(top_srcdir)/common/release.mak
71 include $(top_srcdir)/common/po.mak