--- a/Makefile.am Wed Feb 19 12:28:15 2014 +0100
+++ b/Makefile.am Mon Mar 10 13:43:48 2014 +0100
@@ -30,11 +30,14 @@
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
- devices \
include \
- master \
script
+if ENABLE_KERNEL
+SUBDIRS += devices
+SUBDIRS += master
+endif
+
if BUILD_TOOL
SUBDIRS += tool
endif