From 6967114aa4d60eeb4f355c398a16c6dda92293d1 Mon Sep 17 00:00:00 2001 From: Matthias Hagmann <16444067+MattHag@users.noreply.github.com> Date: Sun, 11 Feb 2024 10:26:32 +0100 Subject: [PATCH] udev: Update installation of udev rules Related #2263 --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ea55a65642..f8ae27cd3a 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,21 @@ -# Makefile to copy Solaar udev rules to the appropriate directory - UDEV_RULE_FILE = 42-logitech-unify-permissions.rules UDEV_RULES_SOURCE := rules.d/$(UDEV_RULE_FILE) UDEV_RULES_SOURCE_UINPUT := rules.d-uinput/$(UDEV_RULE_FILE) UDEV_RULES_DEST := /etc/udev/rules.d/ -.PHONY: install install_uinput uninstall +.PHONY: install_udev install_udev_uinput uninstall_udev -install: +install_udev: @echo "Copying Solaar udev rules to $(UDEV_RULES_DEST)" sudo cp $(UDEV_RULES_SOURCE) $(UDEV_RULES_DEST) sudo udevadm control --reload-rules install_udev_uinput: - @echo "Copying Solaar udev rules to $(UDEV_RULES_DEST)" + @echo "Copying Solaar udev rules (uinput) to $(UDEV_RULES_DEST)" sudo cp $(UDEV_RULES_SOURCE_UINPUT) $(UDEV_RULES_DEST) sudo udevadm control --reload-rules -uninstall: +uninstall_udev: @echo "Removing Solaar udev rules from $(UDEV_RULES_DEST)" sudo rm -f $(UDEV_RULES_DEST)/$(UDEV_RULE_FILE) sudo udevadm control --reload-rules