Link i3_config

This commit is contained in:
Evie Litherland-Smith 2023-04-03 16:46:18 +01:00
parent 466c64b3d9
commit 59f7900cfd

View file

@ -7,7 +7,6 @@ SSH_ITEMS := $(wildcard ssh/*)
SSH_TARGETS := $(SSH_ITEMS:ssh/%=$(SSH_DIR)/%)
LAZY_REPO := https://github.com/folke/lazy.nvim.git
PYENV_DIR := $(if $(PYENV_ROOT), $(PYENV_ROOT), $(HOME)/.pyenv)
.PHONY: default all clean check directories link install
@ -25,12 +24,13 @@ directories: $(CONFIG_DIR) $(SSH_DIR)
$(CONFIG_DIR) $(SSH_DIR):
mkdir -p $@
link: $(CONFIG_TARGETS) $(SSH_DIR)/config.d $(HOME)/.inputrc
link: $(CONFIG_TARGETS) $(SSH_DIR)/config.d $(HOME)/.inputrc $(HOME)/.i3_scripts
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
$(SSH_DIR)/config.d: $(SSH_DIR)/%: ssh/%
$(HOME)/.inputrc: $(HOME)/%: %
$(CONFIG_TARGETS) $(SSH_DIR)/config.d $(HOME)/.inputrc:
$(HOME)/.i3_scripts: $(HOME)/.%: %
$(CONFIG_TARGETS) $(SSH_DIR)/config.d $(HOME)/.inputrc $(HOME)/.i3_scripts:
ln -s $(PWD)/$? $@
install: $(LAZY_DIR)