summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e5909fd97..9fe291ccb 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,7 +1,10 @@
EXTRA_DIST = README
+# Build misc unless both --disable-examples and --disable-benchmarks were passed
+
if BUILD_BENCHMARKS
SUBDIRS_BENCHMARKS = benchmarks
+SUBDIRS_MISC = misc
else
SUBDIRS_BENCHMARKS =
endif
@@ -22,6 +25,7 @@ endif
if BUILD_EXAMPLES
SUBDIRS_EXAMPLES = examples
+SUBDIRS_MISC = misc
else
SUBDIRS_EXAMPLES =
endif
@@ -29,7 +33,7 @@ endif
SUBDIRS = \
$(SUBDIRS_BENCHMARKS) \
$(SUBDIRS_CHECK) \
- misc \
+ $(SUBDIRS_MISC) \
$(SUBDIRS_TESTS) \
$(SUBDIRS_EXAMPLES)