summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/udev/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/udev/Makefile.am b/src/udev/Makefile.am
index 351d201768..a28607d565 100644
--- a/src/udev/Makefile.am
+++ b/src/udev/Makefile.am
@@ -119,7 +119,9 @@ CLEANFILES = \
# install udevadm symlink in sbindir
install-exec-hook:
- $(LN_S) -f ../bin/udevadm $(DESTDIR)$(sbindir)/udevadm
+ if test "$(bindir)" != "$(sbindir)"; then \
+ $(LN_S) -r $(DESTDIR)$(bindir)/udevadm $(DESTDIR)$(sbindir)/udevadm; \
+ fi
uninstall-hook:
rm -Rf $(DESTDIR)$(sbindir)/udevadm