blob: 2511f0a1b31ac0c0f747d1e141bb421b288be4e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
UDEV_RULE_DIR := /etc/udev/rules.d
RULES_FILE := 50-docking-station.rules
SCRIPT_DIR := /usr/local/bin
SCRIPT := dock-action.py
install: $(UDEV_RULE_DIR)/$(RULES_FILE) $(SCRIPT_DIR)/$(SCRIPT)
uninstall:
@echo "Removing udev rules (requires root access)"
sudo rm "$(UDEV_RULE_DIR)/$(RULES_FILE)"
@echo "Removing script (requires root access)"
sudo rm "$(SCRIPT_DIR)/$(SCRIPT)"
$(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)
$(SCRIPT_DIR)/$(SCRIPT): $(SCRIPT)
@echo "Installing script (requires root access)"
sudo install --owner=root --group=root --mode=755 -t $(SCRIPT_DIR) $(SCRIPT)
.PHONY: install uninstall
|