From e266d52acf7df18969bb6a8f2b72f5f24d6a5ee3 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Tue, 30 Aug 2011 16:03:22 +0200 Subject: [PATCH] Don't build the examples if it's disabled in configure Fixes: #657707. --- tests/Makefile.am | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 719725bec9..e930be5e38 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -4,4 +4,13 @@ else CHECK_SUBDIRS= endif -SUBDIRS= $(CHECK_SUBDIRS) examples \ No newline at end of file +if BUILD_EXAMPLES +EXAMPLES_SUBDIRS= examples +else +EXAMPLES_SUBDIRS= +endif + +SUBDIRS= $(CHECK_SUBDIRS) $(EXAMPLES_SUBDIRS) + +DIST_SUBDIRS = check examples +