summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-09-03 13:30:57 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-09-03 13:30:57 +0200
commita04879b5643e9100b3c34c5c4ea9b44c5eec3e92 (patch)
treeebd303f670f26c075e17385b9dfd35e788e6065c /Makefile.am
parent8937f371fb0033b0713fc1bbb1df19481b981f6b (diff)
systemd: enable all udev services unconditionally
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am25
1 files changed, 21 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 512de34a31..44cf002188 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,6 +26,11 @@ DISTCHECK_CONFIGURE_FLAGS = \
CLEANFILES =
+INSTALL_EXEC_HOOKS =
+INSTALL_DATA_HOOKS =
+UNINSTALL_EXEC_HOOKS =
+DISTCHECK_HOOKS =
+
# ------------------------------------------------------------------------------
# libudev
# ------------------------------------------------------------------------------
@@ -84,16 +89,18 @@ libudev-install-move-hook:
libudev-uninstall-move-hook:
rm -f $(DESTDIR)$(rootlib_execdir)/libudev.so*
-INSTALL_EXEC_HOOKS = libudev-install-move-hook
-UNINSTALL_EXEC_HOOKS = libudev-uninstall-move-hook
+INSTALL_EXEC_HOOKS += libudev-install-move-hook
+UNINSTALL_EXEC_HOOKS += libudev-uninstall-move-hook
# ------------------------------------------------------------------------------
# main udev
# ------------------------------------------------------------------------------
-install-data-local:
+udev-confdirs:
-mkdir -p $(DESTDIR)$(sysconfdir)/udev/rules.d
-mkdir -p $(DESTDIR)$(libexecdir)/devices
+INSTALL_DATA_HOOKS += udev-confdirs
+
EXTRA_DIST += \
rules/arch \
rules/misc
@@ -120,6 +127,14 @@ systemdsystemunit_DATA = \
init/udev.service \
init/udev-settle.service \
init/udev-retry.service
+
+systemd-install-hook:
+ mkdir -p $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants
+ ln -sf ../udev.service $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants/udev.service
+ ln -sf ../udev-settle.service $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants/udev-settle.service
+ ln -sf ../udev-retry.service $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants/udev-retry.service
+
+INSTALL_DATA_HOOKS += systemd-install-hook
endif
sbin_PROGRAMS = \
@@ -585,7 +600,7 @@ extras/keymap/keys-to-name.h: extras/keymap/keys.txt Makefile
keymaps-distcheck-hook: extras/keymap/keys.txt
$(top_srcdir)/extras/keymap/check-keymaps.sh $(top_srcdir) $^
-DISTCHECK_HOOKS = keymaps-distcheck-hook
+DISTCHECK_HOOKS += keymaps-distcheck-hook
endif # ENABLE_EXTRAS
@@ -607,6 +622,8 @@ EXTRA_DIST += $(TESTS)
install-exec-hook: $(INSTALL_EXEC_HOOKS)
+install-data-hook: $(INSTALL_DATA_HOOKS)
+
uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
distcheck-hook: $(DISTCHECK_HOOKS)