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