Make linking more robust

This commit is contained in:
Evie Litherland-Smith 2023-02-25 08:56:04 +00:00
parent 7709fef79e
commit 717acf5ddc

View file

@ -35,10 +35,10 @@ pacman:
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
$(SSH_TARGETS): $(SSH_DIR)/%: ssh/%
$(CONFIG_TARGETS) $(SSH_TARGETS):
ln -s $(PWD)/$? $@
ln -s $(PWD)/$? -t $$(dirname $@)
$(HOME)/.profile: .profile
ln -s $(PWD)/$? $@
ln -s $(PWD)/$? -t $$(dirname $@)
$(LAZY_DIR):
git clone --depth 1 $(LAZY_REPO) $@