-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
+
+EXTRA_DIST = \
+ gst-plugins-good.spec depcomp \
+ AUTHORS COPYING NEWS README RELEASE REQUIREMENTS \
+ ChangeLog gst-plugins-good.doap autogen.sh \
+ $(win32)
+
+DISTCLEANFILES = _stdint.h
-if BUILD_EXAMPLES
-EXAMPLES_DIR=examples
+noinst_HEADERS = \
+ gst-libs/gst/gettext.h \
+ gst-libs/gst/gst-i18n-plugin.h \
+ gst-libs/gst/glib-compat-private.h
+
+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
-SUBDIRS=gst-libs \
- gst sys $(EXT_DIR) \
- $(EXAMPLES_DIR) \
- tools \
- $(GCONF_DIR) \
- testsuite \
- po \
- common \
- m4 \
- pkgconfig
+win32-update:
+ cp $(top_builddir)/win32/common/config.h-new \
+ $(top_srcdir)/win32/common/config.h
-DIST_SUBDIRS=ext gst-libs \
- gst sys \
- examples \
- tools \
- gconf \
- testsuite \
- po \
- common \
- m4 \
- pkgconfig
+include $(top_srcdir)/common/coverage/lcov.mak
-EXTRA_DIST=gst-plugins.spec depcomp \
- AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS \
- ChangeLog autogen.sh
+# cruft: plugins that have been merged or moved or renamed
-DISTCLEANFILES=_stdint.h
+CRUFT_FILES = \
+ $(top_builddir)/common/shave \
+ $(top_builddir)/common/shave-libtool \
+ $(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}
-include $(top_srcdir)/common/release.mak
+CRUFT_DIRS = \
+ $(top_srcdir)/gst/median \
+ $(top_srcdir)/gst/qtdemux \
+ $(top_srcdir)/gst/quicktime \
+ $(top_srcdir)/ext/annodex
+
+include $(top_srcdir)/common/cruft.mak
+
+all-local: check-cruft