-if USE_GCONFTOOL
-GCONF_DIR=gconf
-else
-GCONF_DIR=
-endif
+DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
-if BUILD_EXTERNAL
-EXT_DIR=ext
-else
-EXT_DIR=
-endif
+ALWAYS_SUBDIRS = \
+ gst sys ext \
+ tests \
+ docs \
+ po \
+ common \
+ m4 \
+ pkgconfig
+
+SUBDIRS = $(ALWAYS_SUBDIRS)
+
+DIST_SUBDIRS = $(ALWAYS_SUBDIRS)
+
+# include before EXTRA_DIST for win32 assignment
+include $(top_srcdir)/common/win32.mak
-if BUILD_EXAMPLES
-EXAMPLES_DIR=examples
+EXTRA_DIST = \
+ gst-plugins-good.spec depcomp \
+ AUTHORS COPYING NEWS README RELEASE REQUIREMENTS \
+ ChangeLog gst-plugins-good.doap autogen.sh \
+ $(win32)
+
+DISTCLEANFILES = _stdint.h
+
+noinst_HEADERS = \
+ gst-libs/gst/gettext.h \
+ gst-libs/gst/gst-i18n-plugin.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
-EXAMPLES_DIR=
+check-torture:
+ true
endif
-all-local: gstreamer-libs-@GST_MAJORMINOR@.pc gstreamer-play-@GST_MAJORMINOR@.pc gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc gst-element-check-@GST_MAJORMINOR@.m4
-
-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 $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
+win32-update:
+ for f in gst/udp/gstudp-marshal.c \
+ gst/udp/gstudp-marshal.h \
+ gst/udp/gstudp-enumtypes.c \
+ gst/udp/gstudp-enumtypes.h \
+ gst/rtpmanager/gstrtpbin-marshal.c \
+ gst/rtpmanager/gstrtpbin-marshal.h ; do \
+ cp $(top_builddir)/$$f win32/common; done
+ $(top_srcdir)/common/gst-indent win32/common/gstudp-marshal.c
+ $(top_srcdir)/common/gst-indent win32/common/gstudp-marshal.c
+ $(top_srcdir)/common/gst-indent win32/common/gstudp-enumtypes.c
+ $(top_srcdir)/common/gst-indent win32/common/gstudp-enumtypes.c
+ $(top_srcdir)/common/gst-indent gst/rtpmanager/gstrtpbin-marshal.c
+ $(top_srcdir)/common/gst-indent gst/rtpmanager/gstrtpbin-marshal.c
+ cp $(top_builddir)/win32/common/config.h-new \
+ $(top_srcdir)/win32/common/config.h
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = \
- gstreamer-libs-@GST_MAJORMINOR@.pc \
- gstreamer-play-@GST_MAJORMINOR@.pc
+include $(top_srcdir)/common/coverage/lcov.mak
-aclocaldir = $(datadir)/aclocal
-aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
+# cruft: plugins that have been merged or moved or renamed
-SUBDIRS=gst-libs gst sys $(EXT_DIR) $(EXAMPLES_DIR) tools $(GCONF_DIR) testsuite
+CRUFT_FILES = \
+ $(top_builddir)/common/shave \
+ $(top_builddir)/common/shave-libtool \
+ $(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}
-DIST_SUBDIRS=gst-libs gst sys ext examples tools gconf testsuite
+CRUFT_DIRS = \
+ $(top_srcdir)/gst/qtdemux \
+ $(top_srcdir)/gst/quicktime
-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 REQUIREMENTS \
- ChangeLog autogen.sh common m4
+include $(top_srcdir)/common/cruft.mak
-dist-hook:
- rm -rf `find $(distdir)/common -name CVS`
- rm -rf `find $(distdir)/m4 -name CVS`
+all-local: check-cruft