From: Samir Benmendil Date: Sun, 30 Oct 2022 20:30:10 +0000 (+0000) Subject: systemd: symlink system units into /etc X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b0f1868a68ea0840e2727ae8a60ae264b0c8a847?ds=inline systemd: symlink system units into /etc --- 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