summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac6
-rw-r--r--src/Makefile.am12
3 files changed, 20 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 0c6429df60..0d463798ef 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,9 +1,13 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = \
- src \
+ src
+
+if ENABLE_PROGRAMS
+SUBDIRS += \
rules \
test
+endif
if ENABLE_MANPAGES
SUBDIRS += \
diff --git a/configure.ac b/configure.ac
index 52865a8157..aec2aaaa45 100644
--- a/configure.ac
+++ b/configure.ac
@@ -197,6 +197,12 @@ GOBJECT_INTROSPECTION_CHECK([1.31.1])
AM_CONDITIONAL([HAVE_INTROSPECTION], [test "$enable_introspection" = "yes"])
# ------------------------------------------------------------------------------
+AC_ARG_ENABLE([programs],
+ AS_HELP_STRING([--disable-programs], [disable programs (udevd, udevadm and helpers)]),
+ [], [enable_programs="yes"])
+AM_CONDITIONAL([ENABLE_PROGRAMS], [test "x$enable_programs" = "xyes"])
+
+# ------------------------------------------------------------------------------
have_blkid=no
AC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [Disable optional blkid support]))
if test "x$enable_blkid" != "xno"; then
diff --git a/src/Makefile.am b/src/Makefile.am
index fc052a83e0..d8a75f88c0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,11 +2,13 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
shared \
- libudev \
+ libudev
+
+PROGRAMS_SUBDIRS = \
udev
# Helper programs
-SUBDIRS += \
+PROGRAMS_SUBDIRS += \
ata_id \
cdrom_id \
collect \
@@ -14,6 +16,10 @@ SUBDIRS += \
v4l_id
if ENABLE_MTD_PROBE
-SUBDIRS += \
+PROGRAMS_SUBDIRS += \
mtd_probe
endif
+
+if ENABLE_PROGRAMS
+SUBDIRS += $(PROGRAMS_SUBDIRS)
+endif