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