audiodecoder: handle empty input by discarding
[platform/upstream/gstreamer.git] / Makefile.am
index e7b261f..00201ec 100644 (file)
@@ -1,71 +1,85 @@
-if BUILD_DOCS
-SUBDIRS_DOCS = docs
-else
-SUBDIRS_DOCS =
-endif
-
-if USE_GCONFTOOL
-GCONF_DIR = gconf
-else
-GCONF_DIR =
-endif
+DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
 
 if BUILD_EXTERNAL
-EXT_DIR = ext
+SUBDIRS_EXT = ext
 else
-EXT_DIR =
-endif
-
-if BUILD_EXAMPLES
-EXAMPLES_DIR = examples
-else
-EXAMPLES_DIR =
+SUBDIRS_EXT =
 endif
 
 SUBDIRS =                      \
+       pkgconfig               \
        gst-libs                \
-       gst sys $(EXT_DIR)      \
-       $(EXAMPLES_DIR)         \
+       gst sys $(SUBDIRS_EXT)  \
        tools                   \
-       $(GCONF_DIR)            \
-       testsuite               \
+       tests                   \
+       docs                    \
        po                      \
        common                  \
-       m4                      \
-       pkgconfig               \
-       $(SUBDIRS_DOCS)
+       m4
 
 DIST_SUBDIRS =                         \
+       pkgconfig               \
+       docs                    \
        gst-libs                \
        gst sys ext             \
-       examples                \
        tools                   \
-       gconf                   \
-       testsuite               \
+       tests                   \
        po                      \
        common                  \
-       m4                      \
-       pkgconfig               \
-       docs
+       m4
+
+# include before EXTRA_DIST for win32 assignment
+include $(top_srcdir)/common/win32.mak
 
 EXTRA_DIST = \
-       gst-plugins.spec depcomp \
+       gst-plugins-base.spec depcomp \
        AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS \
-       ChangeLog autogen.sh
+       ChangeLog gst-plugins-base.doap autogen.sh $(win32)
 
 DISTCLEANFILES = _stdint.h
 
-# check that no marshal or enumtypes files are included
-# this in turn ensures that distcheck fails for missing .list files which is currently
-# shadowed when the corresponding .c and .h files are included.
-distcheck-hook:
-       @test "x" = "x`find $(distdir) -name \*-enumtypes.[ch]`" && \
-       test "x" = "x`find $(distdir) -name \*-marshal.[ch]`" || \
-       ( $(ECHO) "*** Leftover enumtypes or marshal files in the tarball." && \
-          $(ECHO) "*** Make sure the following files are not disted:" && \
-          find $(distdir) -name \*-enumtypes.[ch] && \
-          find $(distdir) -name \*-marshal.[ch] && \
-          false )
+ACLOCAL_AMFLAGS = -I m4 -I common/m4
 
 include $(top_srcdir)/common/release.mak
 include $(top_srcdir)/common/po.mak
+
+check-valgrind:
+       cd tests/check && make check-valgrind
+
+if HAVE_GST_CHECK
+check-torture:
+       cd tests/check && make torture
+else
+check-torture:
+       true
+endif
+
+WIN32_COPY = \
+       $(top_builddir)/gst-libs/gst/*/*-enumtypes.[ch] \
+       $(top_builddir)/_stdint.h
+
+win32-update:
+       for f in $(WIN32_COPY); do cp -v $$f win32/common; done; \
+       for f in win32/common/*-enumtypes.c; do \
+         echo "Indenting $$f"; \
+         gst-indent $$f; gst-indent $$f; \
+       done
+       cp -v $(top_builddir)/win32/common/config.h-new \
+           $(top_srcdir)/win32/common/config.h
+
+include $(top_srcdir)/common/coverage/lcov.mak
+
+check: check-exports
+
+# cruft: plugins that have been merged or moved or renamed
+
+CRUFT_FILES = \
+       $(top_builddir)/common/shave \
+       $(top_builddir)/common/shave-libtool \
+       $(top_builddir)/gst-libs/gst/audio/testchannels \
+       $(top_builddir)/tools/gst-discoverer
+
+
+include $(top_srcdir)/common/cruft.mak
+
+all-local: check-cruft