summaryrefslogtreecommitdiff
path: root/src/udev/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/udev/Makefile.am')
-rw-r--r--src/udev/Makefile.am13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/udev/Makefile.am b/src/udev/Makefile.am
index d88d72bc6b..929185b08d 100644
--- a/src/udev/Makefile.am
+++ b/src/udev/Makefile.am
@@ -12,10 +12,12 @@ AM_CPPFLAGS = \
-DUDEV_VERSION=\"$(UDEV_VERSION)\" \
-I $(top_srcdir)/src/libudev
-sbin_PROGRAMS = \
- udevd \
+bin_PROGRAMS = \
udevadm
+sbin_PROGRAMS = \
+ udevd
+
udevd_SOURCES = \
udevd.c
@@ -114,3 +116,10 @@ EXTRA_DIST = \
CLEANFILES = \
udev.pc
+
+# install udevadm symlink in sbindir
+install-exec-hook:
+ ln -sf ../bin/udevadm $(DESTDIR)$(sbindir)/udevadm
+
+uninstall-hook:
+ rm -Rf $(DESTDIR)$(sbindir)/udevadm