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
+
if BUILD_TESTS
## SUBDIRS_TESTS = tests testsuite
## FIXME: write tests from scratch
if BUILD_EXAMPLES
SUBDIRS_EXAMPLES = examples
+SUBDIRS_MISC = misc
else
SUBDIRS_EXAMPLES =
endif
SUBDIRS = \
- benchmarks \
+ $(SUBDIRS_BENCHMARKS) \
$(SUBDIRS_CHECK) \
- misc \
+ $(SUBDIRS_MISC) \
$(SUBDIRS_TESTS) \
$(SUBDIRS_EXAMPLES)