Move conditional subdir include into top level.
Based on patch by: Joel Holdsworth
https://bugzilla.gnome.org/show_bug.cgi?id=757703
SUBDIRS_EXAMPLES =
endif
-SUBDIRS = \
+if BUILD_TESTS
+SUBDIRS_TESTS = tests
+else
+SUBDIRS_TESTS =
+endif
+
+SUBDIRS = \
gst \
common \
pkgconfig \
docs \
$(SUBDIRS_EXAMPLES) \
- tests
+ $(SUBDIRS_TESTS)
DIST_SUBDIRS = gst common pkgconfig docs examples tests
$(GST_LIBS) \
$(top_builddir)/gst/rtsp-server/libgstrtspserver-@GST_API_VERSION@.la
-if BUILD_TESTS
-SUBDIRS_CHECK = check
-else
-SUBDIRS_CHECK =
-endif
+SUBDIRS = check
-SUBDIRS = \
- $(SUBDIRS_CHECK)
-
-DIST_SUBDIRS = \
- check
+DIST_SUBDIRS = check