From 7df31aef7d84c32e88c12805e325626409902cd8 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sat, 20 Jan 2024 09:36:23 +0100 Subject: Rename rules file, add Makefile --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e858a74 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +UDEV_RULE_DIR := /etc/udev/rules.d +RULES_FILE := 50-docking-station.rules + +$(UDEV_RULE_DIR)/$(RULES_FILE): $(RULES_FILE) + @echo "Installing udev rules (requires root access)" + sudo install --owner=root --group=root --mode=644 -t $(UDEV_RULE_DIR) $(RULES_FILE) + +install: $(UDEV_RULE_DIR)/$(RULES_FILE) + +uninstall: + @echo "Removing udev rules (requires root access)" + sudo rm "$(UDEV_RULE_DIR)/$(RULES_FILE)" + +.PHONY: install uninstall -- cgit v1.2.3