refactor struct
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,8 +1,11 @@
|
||||
# prefer this if stow is available
|
||||
.PHONY: stow
|
||||
.PHONY: stow unstow
|
||||
stow:
|
||||
stow nvim
|
||||
|
||||
unstow:
|
||||
stow -D nvim
|
||||
|
||||
LN := ln -svf
|
||||
LNDIR := ln -sv
|
||||
|
||||
@@ -10,14 +13,20 @@ DOTFILES_DIR := $(shell pwd)
|
||||
TARGET_DIR := $(HOME)
|
||||
|
||||
# if stow is not available, symlink configs instead
|
||||
.PHONY: link
|
||||
.PHONY: link unlink
|
||||
link: nvim
|
||||
|
||||
unlink: unnvim
|
||||
|
||||
.PHONY: nvim
|
||||
nvim:
|
||||
rm -rf $(TARGET_DIR)/.config/nvim
|
||||
$(LNDIR) $(DOTFILES_DIR)/nvim/.config/nvim $(TARGET_DIR)/.config/nvim
|
||||
|
||||
.PHONY: unnvim
|
||||
unnvim:
|
||||
rm -rf $(TARGET_DIR)/.config/nvim
|
||||
|
||||
.PHONY: git
|
||||
git:
|
||||
rm -f $(TARGET_DIR)/.gitconfig
|
||||
|
||||
Reference in New Issue
Block a user