summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2016-10-09 16:17:50 +0200
committerAnthony G. Basile <blueness@gentoo.org>2017-01-01 18:19:58 -0500
commit18565392cfecb5be6f3261ae0f82827c9ecfa08b (patch)
tree0fc55a5d774e4fc1bd376bc84330ff6a42f5ab48 /src/Makefile.am
parent23a9d68c212f205bf22507f4927bb6fb3543e210 (diff)
configure.ac: add option to disable building programs
In some cases (e.g. trimmed-down chroot or containers), libudev is the only thing needed, with udevd and assorted programs totally useless (e.g. because /dev is bind-mounted from the real one and managed out-side the chroot/container). Add an option to ./configure to enable/disable building the programs; this option defaults to "enable", so that it is backward compatible with existing build procedure, and because it by default makes sense to have udevd et al. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am12
1 files changed, 9 insertions, 3 deletions
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