ACLOCAL_AMFLAGS = -I config
-SUBDIRS = liblttsessiondcomm liblttngctl lttng ltt-sessiond tests
+SUBDIRS = common \
+ liblttng-sessiond-comm \
+ libkernelctl \
+ liblttng-ht \
+ liblttng-kconsumer \
+ liblttng-ustconsumer \
+ liblttng-consumer \
+ lttng-consumerd
+
+if ! BUILD_CONSUMERD_ONLY
+SUBDIRS += liblttngctl \
+ lttng \
+ lttng-sessiond
+endif
+
+SUBDIRS += tests \
+ include \
+ doc