summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-01-30 17:50:55 +0100
committerKay Sievers <kay@vrfy.org>2013-01-30 17:50:55 +0100
commitaa5902410776dcfe4498be6c2bc2dac8f2294737 (patch)
treec49e6bfa1a55d692d6349bcf0dfd1482f9c388d9 /Makefile.am
parent4584651afd7c1ddb30a2bd16a08088969e4bccff (diff)
build-sys: move most of HAVE_KMOD into one section
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am55
1 files changed, 22 insertions, 33 deletions
diff --git a/Makefile.am b/Makefile.am
index b08f66257f..f2b8fb41bd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -295,11 +295,6 @@ rootlibexec_PROGRAMS = \
systemd-sysctl \
systemd-sleep
-if HAVE_KMOD
-rootlibexec_PROGRAMS += \
- systemd-modules-load
-endif
-
systemgenerator_PROGRAMS = \
systemd-getty-generator \
systemd-fstab-generator \
@@ -413,14 +408,6 @@ nodist_systemunit_DATA = \
units/systemd-udev-settle.service \
units/debug-shell.service
-if HAVE_KMOD
-nodist_systemunit_DATA += \
- units/systemd-modules-load.service
-
-EXTRA_DIST += \
- units/systemd-modules-load.service.in
-endif
-
dist_userunit_DATA = \
units/user/default.target \
units/user/exit.target
@@ -657,15 +644,6 @@ MANPAGES_ALIAS = \
man/SD_JOURNAL_FOREACH_UNIQUE.3 \
man/sd_journal_get_catalog_for_message_id.3
-if HAVE_KMOD
-MANPAGES += \
- man/modules-load.d.5 \
- man/systemd-modules-load.service.8
-MANPAGES_ALIAS += \
- man/systemd-modules-load.8
-man/systemd-modules-load.8: man/systemd-modules-load.service.8
-endif
-
if HAVE_MICROHTTPD
MANPAGES += \
man/systemd-journal-gatewayd.service.8
@@ -1508,8 +1486,8 @@ systemd_shutdown_LDADD = \
libsystemd-shared.la \
libudev.la
-if HAVE_KMOD
# ------------------------------------------------------------------------------
+if HAVE_KMOD
systemd_modules_load_SOURCES = \
src/modules-load/modules-load.c
@@ -1520,8 +1498,29 @@ systemd_modules_load_CFLAGS = \
systemd_modules_load_LDADD = \
libsystemd-shared.la \
$(KMOD_LIBS)
+
+rootlibexec_PROGRAMS += \
+ systemd-modules-load
+
+nodist_systemunit_DATA += \
+ units/systemd-modules-load.service
+SYSINIT_TARGET_WANTS += \
+ systemd-modules-load.service
+
+dist_udevrules_DATA += \
+ rules/80-drivers.rules
+
+MANPAGES += \
+ man/modules-load.d.5 \
+ man/systemd-modules-load.service.8
+MANPAGES_ALIAS += \
+ man/systemd-modules-load.8
+man/systemd-modules-load.8: man/systemd-modules-load.service.8
endif
+EXTRA_DIST += \
+ units/systemd-modules-load.service.in
+
# ------------------------------------------------------------------------------
systemd_tmpfiles_SOURCES = \
src/tmpfiles/tmpfiles.c
@@ -1936,11 +1935,6 @@ dist_udevrules_DATA += \
rules/80-net-name-slot.rules \
rules/95-udev-late.rules
-if HAVE_KMOD
-dist_udevrules_DATA += \
- rules/80-drivers.rules
-endif
-
dist_udevhwdb_DATA = \
hwdb/20-pci-vendor-product.hwdb \
hwdb/20-pci-classes.hwdb \
@@ -4073,11 +4067,6 @@ INSTALL_DIRS += \
$(dbussessionservicedir) \
$(sysconfdir)/xdg/systemd
-if HAVE_KMOD
-SYSINIT_TARGET_WANTS += \
- systemd-modules-load.service
-endif
-
install-exec-hook: $(INSTALL_EXEC_HOOKS)
uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)