-if USE_GCONFTOOL
-GCONF_DIR=gconf
-else
-GCONF_DIR=
-endif
+DISTCHECK_CONFIGURE_FLAGS=--disable-gtk-doc
-if BUILD_EXTERNAL
-EXT_DIR=ext
-else
-EXT_DIR=
-endif
+ALWAYS_SUBDIRS = \
+ gst sys ext \
+ tests \
+ po \
+ common \
+ m4 \
+ pkgconfig
+
+SUBDIRS = $(ALWAYS_SUBDIRS)
+
+DIST_SUBDIRS = $(ALWAYS_SUBDIRS)
+
+EXTRA_DIST = \
+ depcomp \
+ AUTHORS COPYING NEWS README RELEASE REQUIREMENTS \
+ ChangeLog gst-plugins-good.doap autogen.sh \
+ $(shell find "$(top_srcdir)" -type f -name meson.build ! -path "$(top_srcdir)/$(PACKAGE_TARNAME)-*" ) \
+ meson_options.txt
+
+DISTCLEANFILES = _stdint.h
+
+noinst_HEADERS = \
+ gst-libs/gst/gettext.h \
+ gst-libs/gst/gst-i18n-plugin.h \
+ gst-libs/gst/glib-compat-private.h
-if BUILD_EXAMPLES
-EXAMPLES_DIR=examples
+ACLOCAL_AMFLAGS = -I m4 -I common/m4
+
+include $(top_srcdir)/common/release.mak
+include $(top_srcdir)/common/po.mak
+
+check-valgrind:
+ $(MAKE) -C tests/check check-valgrind
+
+if HAVE_GST_CHECK
+check-torture:
+ $(MAKE) -C tests/check torture
+build-checks:
+ $(MAKE) -C tests/check build-checks
else
-EXAMPLES_DIR=
+check-torture:
+ true
+build-checks:
+ true
endif
-all-local: gstreamer-libs-@GST_MAJORMINOR@.pc gstreamer-play-@GST_MAJORMINOR@.pc
-gstreamer-libs-@GST_MAJORMINOR@.pc: gstreamer-libs.pc gstreamer-libs.pc.in
- cp gstreamer-libs.pc gstreamer-libs-@GST_MAJORMINOR@.pc
-gstreamer-play-@GST_MAJORMINOR@.pc: gstreamer-play.pc gstreamer-play.pc.in
- cp gstreamer-play.pc gstreamer-play-@GST_MAJORMINOR@.pc
-gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc: gstreamer-libs-uninstalled.pc gstreamer-libs-uninstalled.pc.in
- cp gstreamer-libs-uninstalled.pc gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc
-gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc: gstreamer-play-uninstalled.pc gstreamer-play-uninstalled.pc.in
- cp gstreamer-play-uninstalled.pc gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc
-gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
- cp gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = \
- gstreamer-libs-@GST_MAJORMINOR@.pc \
- gstreamer-play-@GST_MAJORMINOR@.pc
-
-aclocaldir = $(datadir)/aclocal
-aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
-
-SUBDIRS=gst-libs gst sys $(EXT_DIR) $(EXAMPLES_DIR) tools $(GCONF_DIR) testsuite
-
-DIST_SUBDIRS=gst-libs gst sys ext examples tools gconf testsuite
-
-EXTRA_DIST=gst-plugins.spec depcomp gst-element-check.m4 \
- gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
- gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in \
- AUTHORS COPYING README RELEASE \
- ChangeLog autogen.sh common m4
-
-dist-hook:
- rm -rf `find $(distdir)/common -name CVS`
- rm -rf `find $(distdir)/m4 -name CVS`
+include $(top_srcdir)/common/coverage/lcov.mak
+
+# cruft: plugins that have been merged or moved or renamed
+
+CRUFT_FILES = \
+ $(top_builddir)/gst-plugins-good.spec \
+ $(top_builddir)/win32/common/config.h-new \
+ $(top_builddir)/common/shave \
+ $(top_builddir)/common/shave-libtool \
+ $(top_builddir)/docs/plugins/xml/plugin-shout2send.xml \
+ $(top_builddir)/ext/pulse/.libs/libgstpulse.so \
+ $(top_builddir)/ext/soup/.libs/libgstsouphttpsrc.so \
+ $(top_builddir)/gst/median/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/qtdemux/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/quicktime/.libs/*.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/videofilter/.libs/*videoflip.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/videofilter/.libs/*videobalance.{so,dll,DLL,dylib} \
+ $(top_builddir)/gst/videofilter/.libs/*gamma.{so,dll,DLL,dylib} \
+ $(top_builddir)/sys/directsound/.libs/libgstdirectsoundsink.{dll,DLL} \
+ $(top_builddir)/sys/oss4/.libs/libgstoss4audio.so \
+ $(top_builddir)/sys/waveform/.libs/libgstwaveformsink.{dll,DLL}
+
+CRUFT_DIRS = \
+ $(top_srcdir)/docs/plugins/tmpl \
+ $(top_srcdir)/gst/median \
+ $(top_srcdir)/gst/qtdemux \
+ $(top_srcdir)/gst/quicktime \
+ $(top_srcdir)/ext/annodex \
+ $(top_srcdir)/tests/examples/pulse
+
+include $(top_srcdir)/common/cruft.mak
+
+all-local: check-cruft