-ACLOCAL_AMFLAGS = -I config
+# SPDX-License-Identifier: GPL-2.0-only
-SUBDIRS = lttng-consumerd
+SUBDIRS =
-if ! BUILD_CONSUMERD_ONLY
-SUBDIRS += lttng \
- lttng-sessiond \
- lttng-relayd
+if BUILD_BIN_LTTNG
+SUBDIRS += lttng
+endif
+
+if BUILD_BIN_LTTNG_CONSUMERD
+SUBDIRS += lttng-consumerd
+endif
+
+if BUILD_BIN_LTTNG_CRASH
+SUBDIRS += lttng-crash
+endif
+
+if BUILD_BIN_LTTNG_RELAYD
+SUBDIRS += lttng-relayd
+endif
+
+if BUILD_BIN_LTTNG_SESSIOND
+SUBDIRS += lttng-sessiond
endif