From b0f1868a68ea0840e2727ae8a60ae264b0c8a847 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 30 Oct 2022 20:30:10 +0000 Subject: [PATCH] systemd: symlink system units into /etc --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 253b040..a8f26ed 100644 --- a/Makefile +++ b/Makefile @@ -118,7 +118,11 @@ ssh: ln -sfT $(APATH)/ssh/config ~/.ssh/config .PHONY: ssh -systemd: $(XDG_CONFIG_HOME) +/etc/systemd/system/%: systemd/system/% + sudo ln -s $(APATH)/$< $@ + +systemd_system_units := $(patsubst %,/etc/%,$(wildcard systemd/system/*)) +systemd: $(XDG_CONFIG_HOME) $(systemd_system_units) ln -sfT $(APATH)/$@ $(XDG_CONFIG_HOME)/$@ .PHONY: systemd -- 2.48.1