X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/5c6433db4a96881c716f6e8a075a01c376384cd3..987bf4b6418140da577e431d2b26ba1793db3ad5:/Makefile diff --git a/Makefile b/Makefile index 2fc6f2c..22365da 100644 --- a/Makefile +++ b/Makefile @@ -117,8 +117,9 @@ ssh: ln -sfT $(APATH)/ssh/config ~/.ssh/config .PHONY: ssh +# copy system files, do not link, it doesn't work if home is encrypted /etc/systemd/system/%: systemd/system/% - sudo ln -s $(APATH)/$< $@ + sudo cp $(APATH)/$< $@ systemd_system_units := $(patsubst %,/etc/%,$(wildcard systemd/system/*)) systemd: $(XDG_CONFIG_HOME) $(systemd_system_units) @@ -126,7 +127,7 @@ systemd: $(XDG_CONFIG_HOME) $(systemd_system_units) .PHONY: systemd task: $(XDG_CONFIG_HOME) - ln -sfT $(APATH)/taskrc $(XDG_CONFIG_HOME)/taskrc + ln -sfT $(APATH)/$@ $(XDG_CONFIG_HOME)/$@ .PHONY: task tmux: $(XDG_CONFIG_HOME)