Link i3_config
This commit is contained in:
parent
466c64b3d9
commit
59f7900cfd
6
Makefile
6
Makefile
|
@ -7,7 +7,6 @@ SSH_ITEMS := $(wildcard ssh/*)
|
||||||
SSH_TARGETS := $(SSH_ITEMS:ssh/%=$(SSH_DIR)/%)
|
SSH_TARGETS := $(SSH_ITEMS:ssh/%=$(SSH_DIR)/%)
|
||||||
|
|
||||||
LAZY_REPO := https://github.com/folke/lazy.nvim.git
|
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
|
.PHONY: default all clean check directories link install
|
||||||
|
|
||||||
|
@ -25,12 +24,13 @@ directories: $(CONFIG_DIR) $(SSH_DIR)
|
||||||
$(CONFIG_DIR) $(SSH_DIR):
|
$(CONFIG_DIR) $(SSH_DIR):
|
||||||
mkdir -p $@
|
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/%
|
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
|
||||||
$(SSH_DIR)/config.d: $(SSH_DIR)/%: ssh/%
|
$(SSH_DIR)/config.d: $(SSH_DIR)/%: ssh/%
|
||||||
$(HOME)/.inputrc: $(HOME)/%: %
|
$(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)/$? $@
|
ln -s $(PWD)/$? $@
|
||||||
|
|
||||||
install: $(LAZY_DIR)
|
install: $(LAZY_DIR)
|
||||||
|
|
Loading…
Reference in a new issue