-SUBDIRS = wayland compositor clients data
+if BUILD_WCAP_TOOLS
+wcap_subdir = wcap
+endif
-ACLOCAL_AMFLAGS = -I m4
+SUBDIRS = shared src clients data protocol tests $(wcap_subdir) man
+
+DIST_SUBDIRS = shared src clients data protocol tests wcap man
+
+
+DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
+
+EXTRA_DIST = weston.ini