summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c30e931..24b6ea3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
1.DEFAULT_GOAL = all
2.PHONY: install enable
3all: install enable
1ifneq (0,$(shell id -u)) 4ifneq (0,$(shell id -u))
2.DEFAULT_GOAL = install
3%: 5%:
4 sudo $(MAKE) -$(MAKEFLAGS) $@ 6 sudo $(MAKE) -$(MAKEFLAGS) $@
5else 7else
@@ -26,6 +28,8 @@ install:
26 install -t $(bindir) -- $(binaries) 28 install -t $(bindir) -- $(binaries)
27 install -m644 -t $(unitdir) -- $(unit_files) 29 install -m644 -t $(unitdir) -- $(unit_files)
28 systemctl daemon-reload 30 systemctl daemon-reload
31
32enable:
29 systemctl reset-failed $(units) 2>/dev/null || true 33 systemctl reset-failed $(units) 2>/dev/null || true
30 systemctl enable --now $(enable_unit) 34 systemctl enable --now $(enable_unit)
31 35