From: Samir Benmendil Date: Mon, 25 Mar 2024 23:33:41 +0000 (+0000) Subject: make: separate systemd-user and systemd-system targets X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/20a4cdc797771c896c97c9acab6a0799904a2b98?ds=inline make: separate systemd-user and systemd-system targets --- 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)