diff options
Diffstat (limited to 'cpp/examples/Makefile.am')
| -rw-r--r-- | cpp/examples/Makefile.am | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/cpp/examples/Makefile.am b/cpp/examples/Makefile.am index 6b2bb73587..c6cc308d98 100644 --- a/cpp/examples/Makefile.am +++ b/cpp/examples/Makefile.am @@ -16,7 +16,15 @@ # specific language governing permissions and limitations # under the License. # -SUBDIRS = qmf-console messaging old_api +SUBDIRS = direct fanout pub-sub request-response failover qmf-console tradedemo messaging +if HAVE_XML + SUBDIRS += xml-exchange + broker_args = "--no-module-dir --data-dir \"\" --auth no --load-module $(top_builddir)/src/.libs/xml.so" +endif +if !HAVE_XML + exclude_examples_regexp="xml" # Exclude XML examples. + broker_args = "--no-module-dir --data-dir \"\" --auth no" +endif MAKEDIST=.libs/Makefile @@ -29,9 +37,13 @@ $(MAKEDIST): Makefile examplesdir=$(pkgdatadir)/examples dist_examples_DATA = README.txt $(MAKEDIST) -EXTRA_DIST = examples.sln CMakeLists.txt +EXTRA_DIST = README.verify verify verify_all examples.sln CMakeLists.txt # For older versions of automake abs_top_srcdir = @abs_top_srcdir@ abs_top_builddir = @abs_top_builddir@ +# Verify the examples in the buid tree. +check-local: + $(srcdir)/verify_all $(abs_top_srcdir)/.. $(abs_top_builddir) $(broker_args) $(exclude_examples_regexp) + |
