build as a lib rather than a plugin
[platform/upstream/gstreamer.git] / Makefile.am
index a97575d..4564aa5 100644 (file)
@@ -1,27 +1,45 @@
+PACKAGE = @PACKAGE@
+VERSION = @VERSION@
 
-if HAVE_LIBGLADE_GNOME
-# The following line mustn't be indented - automake is _very_ fussy..
-libglade_subdir=gstplay editor
+if BUILD_DOCS
+SUBDIRS_DOCS = docs
 else
-# The following line mustn't be indented - automake is _very_ fussy..
-libglade_subdir=
+SUBDIRS_DOCS =
 endif
 
-# These are the subdirs which might get used.
-SUBDIRS = gst libs plugins . test $(libglade_subdir) tools docs # tests
+if BUILD_TESTS
+SUBDIRS_TESTS = tests testsuite
+else
+SUBDIRS_TESTS =
+endif
 
-# These are all the possible subdirs
-DIST_SUBDIRS = gst libs plugins . gstplay test editor tools docs tests
+if BUILD_EXAMPLES
+SUBDIRS_EXAMPLES = examples
+else
+SUBDIRS_EXAMPLES =
+endif
 
-bin_SCRIPTS = gstreamer-config
+SUBDIRS = include gst libs tools \
+       $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) $(SUBDIRS_DOCS)
 
-m4datadir = $(datadir)/aclocal
-m4data_DATA = gstreamer.m4
+# These are all the possible subdirs
+DIST_SUBDIRS = include libs gst tools tests testsuite examples docs
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = gstreamer.pc
 
-EXTRA_DIST = gstreamer.spec.in gstreamer-config.in gstreamer.m4 LICENSE
+EXTRA_DIST = gstreamer.spec.in \
+            gstreamer.pc.in gstreamer-uninstalled.pc.in \
+            configure.ac autogen.sh depcomp \
+            REQUIREMENTS ABOUT-NLS RELEASE DOCBUILDING DEVEL \
+            idiottest.mak common
 
 dist-hook:
        cp gstreamer.spec $(distdir)
+       rm -rf `find $(distdir)/common -name CVS`
 
 rpm: dist
        rpm -ta $(distdir).tar.gz
+
+include $(top_srcdir)/idiottest.mak
+