chiark / gitweb /
build-sys: move most of HAVE_KMOD into one section
authorKay Sievers <kay@vrfy.org>
Wed, 30 Jan 2013 16:50:55 +0000 (17:50 +0100)
committerKay Sievers <kay@vrfy.org>
Wed, 30 Jan 2013 16:50:55 +0000 (17:50 +0100)
Makefile.am

index b08f662..f2b8fb4 100644 (file)
@@ -295,11 +295,6 @@ rootlibexec_PROGRAMS = \
        systemd-sysctl \
        systemd-sleep
 
        systemd-sysctl \
        systemd-sleep
 
-if HAVE_KMOD
-rootlibexec_PROGRAMS += \
-       systemd-modules-load
-endif
-
 systemgenerator_PROGRAMS = \
        systemd-getty-generator \
        systemd-fstab-generator \
 systemgenerator_PROGRAMS = \
        systemd-getty-generator \
        systemd-fstab-generator \
@@ -413,14 +408,6 @@ nodist_systemunit_DATA = \
        units/systemd-udev-settle.service \
        units/debug-shell.service
 
        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
 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
 
        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
 if HAVE_MICROHTTPD
 MANPAGES += \
        man/systemd-journal-gatewayd.service.8
@@ -1508,8 +1486,8 @@ systemd_shutdown_LDADD = \
        libsystemd-shared.la \
        libudev.la
 
        libsystemd-shared.la \
        libudev.la
 
-if HAVE_KMOD
 # ------------------------------------------------------------------------------
 # ------------------------------------------------------------------------------
+if HAVE_KMOD
 systemd_modules_load_SOURCES = \
        src/modules-load/modules-load.c
 
 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)
 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
 
 endif
 
+EXTRA_DIST += \
+       units/systemd-modules-load.service.in
+
 # ------------------------------------------------------------------------------
 systemd_tmpfiles_SOURCES = \
        src/tmpfiles/tmpfiles.c
 # ------------------------------------------------------------------------------
 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
 
        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 \
 dist_udevhwdb_DATA = \
        hwdb/20-pci-vendor-product.hwdb \
        hwdb/20-pci-classes.hwdb \
@@ -4073,11 +4067,6 @@ INSTALL_DIRS += \
        $(dbussessionservicedir) \
        $(sysconfdir)/xdg/systemd
 
        $(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)
 install-exec-hook: $(INSTALL_EXEC_HOOKS)
 
 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)