-SUBDIRS = gst libs plugins test editor tools docs tests
+# if libglade is present, build the player and editor
+if HAVE_LIBGLADE_GNOME
+SUBDIRS_LGG = gstplay editor
+else
+SUBDIRS_LGG =
+endif
+
+SUBDIRS = include gst libs plugins tools test tests examples $(SUBDIRS_LGG) docs
+
+# These are all the possible subdirs
+DIST_SUBDIRS = include gst libs plugins tools test tests examples gstplay editor docs
+
bin_SCRIPTS = gstreamer-config
m4datadir = $(datadir)/aclocal
m4data_DATA = gstreamer.m4
-EXTRA_DIST = gstreamer.spec.in gstreamer-config.in gstreamer.m4
+EXTRA_DIST = gstreamer.spec.in gstreamer-config.in gstreamer.m4 LICENSE REQUIREMENTS
dist-hook:
cp gstreamer.spec $(distdir)