828f2e39ef5854754fdfae91362dbc7a28c2fa44
[platform/upstream/gstreamer.git] / Makefile.am
1 DISTCHECK_CONFIGURE_FLAGS=--enable-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         docs                    \
16         po                      \
17         common                  \
18         m4
19
20 DIST_SUBDIRS =                  \
21         pkgconfig               \
22         docs                    \
23         gst-libs                \
24         gst sys ext             \
25         tools                   \
26         tests                   \
27         po                      \
28         common                  \
29         m4
30
31 # include before EXTRA_DIST for win32 assignment
32 include $(top_srcdir)/common/win32.mak
33
34 EXTRA_DIST = \
35         gst-plugins-base.spec depcomp \
36         AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS \
37         ChangeLog gst-plugins-base.doap autogen.sh $(win32)
38
39 DISTCLEANFILES = _stdint.h
40
41 ACLOCAL_AMFLAGS = -I m4 -I common/m4
42
43 include $(top_srcdir)/common/release.mak
44 include $(top_srcdir)/common/po.mak
45
46 check-valgrind:
47         cd tests/check && make check-valgrind
48
49 if HAVE_GST_CHECK
50 check-torture:
51         cd tests/check && make torture
52 else
53 check-torture:
54         true
55 endif
56
57 WIN32_COPY = \
58         $(top_builddir)/gst-libs/gst/*/*-enumtypes.[ch] \
59         $(top_builddir)/_stdint.h
60
61 win32-update:
62         for f in $(WIN32_COPY); do cp -v $$f win32/common; done; \
63         for f in win32/common/*-enumtypes.c; do \
64           echo "Indenting $$f"; \
65           gst-indent $$f; gst-indent $$f; \
66         done
67         cp -v $(top_builddir)/win32/common/config.h-new \
68             $(top_srcdir)/win32/common/config.h
69
70 include $(top_srcdir)/common/coverage/lcov.mak
71
72 check: check-exports
73
74 # cruft: plugins that have been merged or moved or renamed
75
76 CRUFT_FILES = \
77         $(top_builddir)/common/shave \
78         $(top_builddir)/common/shave-libtool \
79         $(top_builddir)/gst-libs/gst/audio/testchannels \
80         $(top_builddir)/tests/examples/audio/testchannels \
81         $(top_builddir)/tests/examples/volume/volume \
82         $(top_builddir)/tools/gst-discoverer
83
84 CRUFT_DIRS = \
85         $(top_srcdir)/ext/gio \
86         $(top_srcdir)/sys/v4l \
87         $(top_srcdir)/tests/examples/v4l
88
89 include $(top_srcdir)/common/cruft.mak
90
91 all-local: check-cruft