really fix dist
[platform/upstream/gstreamer.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 =                       \
26         gst-libs                \
27         gst sys $(EXT_DIR)      \
28         $(EXAMPLES_DIR)         \
29         tools                   \
30         $(GCONF_DIR)            \
31         testsuite               \
32         po                      \
33         common                  \
34         m4                      \
35         pkgconfig               \
36         $(SUBDIRS_DOCS)
37
38 DIST_SUBDIRS =                  \
39         gst-libs                \
40         gst sys ext             \
41         examples                \
42         tools                   \
43         gconf                   \
44         testsuite               \
45         po                      \
46         common                  \
47         m4                      \
48         pkgconfig               \
49         docs
50
51 EXTRA_DIST = \
52         gst-plugins.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