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