ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = gnulib/lib src
+# Basic source for the library.
+SUBDIRS = gnulib/lib images src examples po
if ENABLE_DAEMON
SUBDIRS += daemon
SUBDIRS += appliance
endif
-SUBDIRS += fish po examples images
+# Tests and the test-tool.
SUBDIRS += gnulib/tests capitests regressions test-tool
+# Guestfish.
+SUBDIRS += fish
+
+# Language bindings.
if HAVE_PERL
SUBDIRS += perl
endif
-
-if HAVE_INSPECTOR
-SUBDIRS += inspector
-endif
-if HAVE_TOOLS
-SUBDIRS += tools
-endif
-
-if HAVE_FUSE
-SUBDIRS += fuse
-endif
-
if HAVE_OCAML
SUBDIRS += ocaml ocaml/examples
endif
SUBDIRS += haskell
endif
+# Virt-inspector, tools and guestmount.
+if HAVE_INSPECTOR
+SUBDIRS += inspector
+endif
+
+if HAVE_TOOLS
+SUBDIRS += tools
+endif
+
+if HAVE_FUSE
+SUBDIRS += fuse
+endif
+
EXTRA_DIST = \
$(generator_built) \
html/pod.css \