From 20a4cdc797771c896c97c9acab6a0799904a2b98 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 25 Mar 2024 23:33:41 +0000 Subject: [PATCH] make: separate systemd-user and systemd-system targets --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7e69147..5eb60a3 100644 --- a/Makefile +++ b/Makefile @@ -125,9 +125,16 @@ ssh: /etc/systemd/system/%: systemd/system/% sudo cp $(APATH)/$< $@ -systemd_system_units := $(patsubst %,/etc/%,$(wildcard systemd/system/*)) -systemd: $(XDG_CONFIG_HOME) $(systemd_system_units) +systemd-system: $(patsubst %,/etc/%,$(wildcard systemd/system/*)) + sudo systemctl daemon-reload +.PHONY: systemd-system + +systemd-user: $(XDG_CONFIG_HOME) ln -sfT $(APATH)/$@ $(XDG_CONFIG_HOME)/$@ +.PHONY: systemd-user + +systemd: systemd-user systemd-system + systemctl --user daemon-reload .PHONY: systemd task: $(XDG_CONFIG_HOME) -- 2.48.1