2ce92e14da1336d7edfec1e516bba62037e76bc0
[platform/upstream/gst-plugins-base.git] / Makefile.am
1 DISTCHECK_CONFIGURE_FLAGS=--disable-gtk-doc
2
3 if BUILD_EXTERNAL
4 SUBDIRS_EXT = ext
5 else
6 SUBDIRS_EXT =
7 endif
8
9 SUBDIRS =                       \
10         pkgconfig               \
11         gst-libs                \
12         gst sys $(SUBDIRS_EXT)  \
13         tools                   \
14         tests                   \
15         po                      \
16         common                  \
17         m4
18
19 DIST_SUBDIRS =                  \
20         pkgconfig               \
21         gst-libs                \
22         gst sys ext             \
23         tools                   \
24         tests                   \
25         po                      \
26         common                  \
27         m4
28
29 # include before EXTRA_DIST for win32 assignment
30 include $(top_srcdir)/common/win32.mak
31
32 EXTRA_DIST = \
33         gst-plugins-base.spec depcomp \
34         AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS \
35         ChangeLog gst-plugins-base.doap autogen.sh $(win32)
36
37 DISTCLEANFILES = _stdint.h
38
39 ACLOCAL_AMFLAGS = -I m4 -I common/m4
40
41 include $(top_srcdir)/common/release.mak
42 include $(top_srcdir)/common/po.mak
43
44 check-valgrind:
45         $(MAKE) -C tests/check check-valgrind
46
47 if HAVE_GST_CHECK
48 check-torture:
49         $(MAKE) -C tests/check torture
50 build-checks:
51         $(MAKE) -C tests/check build-checks
52 else
53 check-torture:
54         true
55 build-checks:
56         true
57 endif
58
59 WIN32_COPY = \
60         $(top_builddir)/gst-libs/gst/*/*-enumtypes.[ch] \
61         $(top_builddir)/_stdint.h
62
63 win32-update:
64         for f in $(WIN32_COPY); do cp -v $$f win32/common; done; \
65         for f in win32/common/*-enumtypes.c; do \
66           echo "Indenting $$f"; \
67           gst-indent $$f; gst-indent $$f; \
68         done
69         cp -v $(top_builddir)/win32/common/config.h-new \
70             $(top_srcdir)/win32/common/config.h
71
72 include $(top_srcdir)/common/coverage/lcov.mak
73
74 check: check-exports
75
76 # cruft: plugins that have been merged or moved or renamed
77
78 CRUFT_FILES = \
79         $(top_builddir)/common/shave \
80         $(top_builddir)/common/shave-libtool \
81         $(top_builddir)/gst-libs/gst/audio/testchannels \
82         $(top_builddir)/tests/check/elements/gdppay \
83         $(top_builddir)/tests/check/elements/gdpdepay \
84         $(top_builddir)/tests/check/pipelines/streamheader \
85         $(top_builddir)/tests/examples/audio/testchannels \
86         $(top_builddir)/tests/examples/volume/volume \
87         $(top_builddir)/tools/gst-discoverer
88
89 CRUFT_DIRS = \
90         $(top_srcdir)/docs/plugins/tmpl \
91         $(top_srcdir)/ext/gio \
92         $(top_srcdir)/gst/gdp \
93         $(top_srcdir)/sys/v4l \
94         $(top_srcdir)/tests/examples/v4l
95
96 include $(top_srcdir)/common/cruft.mak
97
98 all-local: check-cruft