-if BUILD_DOCS
-# disabled until it actually works
-# SUBDIRS_DOCS = docs
-SUBDIRS_DOCS =
+DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
+
+SUBDIRS = \
+ gst-libs gst sys ext pkgconfig \
+ m4 common docs tests po tools
+
+DIST_SUBDIRS = \
+ gst gst-libs sys ext pkgconfig \
+ m4 common docs tests po tools
+
+# include before EXTRA_DIST for win32 assignment
+include $(top_srcdir)/common/win32.mak
+
+EXTRA_DIST = \
+ gst-plugins-bad.spec depcomp \
+ AUTHORS COPYING NEWS README RELEASE REQUIREMENTS \
+ ChangeLog gst-plugins-bad.doap autogen.sh \
+ $(win32)
+
+DISTCLEANFILES = _stdint.h
+
+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
-SUBDIRS_DOCS =
+check-torture:
+ true
endif
-# if USE_GCONFTOOL
-# GCONF_DIR = gconf
-# else
-GCONF_DIR =
-# endif
+include $(top_srcdir)/common/coverage/lcov.mak
-SUBDIRS = \
- gst sys ext \
- $(GCONF_DIR) \
- m4 common
-# disabled
-# $(SUBDIRS_DOCS)
+check: check-exports
-DIST_SUBDIRS = \
- gst sys ext \
- m4 common
+# cruft: plugins that have been merged or moved or renamed
-# disabled
-# docs
+CRUFT_FILES = \
+ $(top_builddir)/common/shave \
+ $(top_builddir)/common/shave-libtool \
+ $(top_builddir)/ext/alsaspdif/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/ext/ivorbis/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/ext/jack/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/aacparse/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/amrparse/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/audioparsers/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/flacparse/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/imagefreeze/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/mpeg4videoparse/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/qtmux/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/selector/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/shapewipe/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/valve/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/videoparsers/.libs/libgsth263parse* \
+ $(top_builddir)/gst-libs/gst/baseparse/.libs/libgstbaseparse* \
+ $(top_builddir)/sys/oss4/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/tests/check/elements/{aac,ac3,amr,flac,mpegaudio,dca}parse \
+ $(top_builddir)/tests/check/elements/autocolorspace \
+ $(top_builddir)/tests/check/elements/capssetter \
+ $(top_builddir)/tests/check/elements/imagefreeze \
+ $(top_builddir)/tests/check/elements/qtmux \
+ $(top_builddir)/tests/check/elements/selector \
+ $(top_builddir)/tests/check/elements/valve \
+ $(top_builddir)/tests/check/pipelines/metadata \
+ $(top_builddir)/tests/examples/jack/jack_client \
+ $(top_builddir)/tests/examples/switch/switcher \
+ $(top_builddir)/tests/icles/output-selector-test \
+ $(top_builddir)/tests/icles/test-oss4 \
+ $(top_builddir)/tests/icles/equalizer-test
-EXTRA_DIST = \
- gst-plugins.spec depcomp \
- AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS \
- ChangeLog autogen.sh
+CRUFT_DIRS = \
+ $(top_srcdir)/gst/aacparse \
+ $(top_srcdir)/gst/amrparse \
+ $(top_srcdir)/gst/flacparse \
+ $(top_srcdir)/gst/imagefreeze \
+ $(top_srcdir)/gst/invtelecine \
+ $(top_srcdir)/gst/mpeg4videoparse \
+ $(top_srcdir)/gst/qtmux \
+ $(top_srcdir)/gst/selector \
+ $(top_srcdir)/gst/shapewipe \
+ $(top_srcdir)/gst/valve \
+ $(top_srcdir)/gst-libs/gst/baseparse \
+ $(top_srcdir)/tests/examples/shapewipe \
+ $(top_srcdir)/tests/examples/switch \
+ $(top_srcdir)/tests/examples/jack \
+ $(top_srcdir)/ext/alsaspdif \
+ $(top_srcdir)/ext/amrwbenc \
+ $(top_srcdir)/ext/ivorbis \
+ $(top_srcdir)/ext/jack \
+ $(top_srcdir)/ext/metadata \
+ $(top_srcdir)/ext/tarkin \
+ $(top_srcdir)/ext/theora
-DISTCLEANFILES = _stdint.h
+include $(top_srcdir)/common/cruft.mak
-# 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 )
-
-# include $(top_srcdir)/common/release.mak
-# include $(top_srcdir)/common/po.mak
+all-local: check-cruft