From b9aa70de9fdc4e1b68bcb6efc05357f9ff05c4a3 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Thu, 16 Nov 2023 17:25:07 -0500 Subject: "make install" separate from "make enable" --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c30e931..24b6ea3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ +.DEFAULT_GOAL = all +.PHONY: install enable +all: install enable ifneq (0,$(shell id -u)) -.DEFAULT_GOAL = install %: sudo $(MAKE) -$(MAKEFLAGS) $@ else @@ -26,6 +28,8 @@ install: install -t $(bindir) -- $(binaries) install -m644 -t $(unitdir) -- $(unit_files) systemctl daemon-reload + +enable: systemctl reset-failed $(units) 2>/dev/null || true systemctl enable --now $(enable_unit) -- cgit v1.2.3