build: Only run make check-exports if no public API was disabled
authorPeter Kjellerstedt <pkj@axis.com>
Wed, 14 Oct 2009 06:50:31 +0000 (08:50 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 14 Oct 2009 06:50:31 +0000 (08:50 +0200)
Fixes bug #598297.

Makefile.am

index 3d6ebb7..13ce243 100644 (file)
@@ -140,5 +140,14 @@ check-enum-gettypes: $(top_builddir)/gst/gstenumtypes.h
 
 include $(top_srcdir)/common/coverage/lcov.mak
 
-check: check-exports check-enum-gettypes
+# Do not run the check-exports test in case any option which causes the API to
+# change has been used
+if !GST_DISABLE_LOADSAVE
+if !GST_DISABLE_REGISTRY
+if !GST_DISABLE_TRACE
+CHECK_EXPORTS = check-exports
+endif
+endif
+endif
 
+check: $(CHECK_EXPORTS) check-enum-gettypes