35 lines
621 B
Makefile
35 lines
621 B
Makefile
# prefer this if stow is available
|
|
.PHONY: stow unstow
|
|
stow:
|
|
stow nvim ghostty
|
|
|
|
unstow:
|
|
stow -D nvim ghostty
|
|
|
|
LN := ln -svf
|
|
LNDIR := ln -sv
|
|
|
|
DOTFILES_DIR := $(shell pwd)
|
|
TARGET_DIR := $(HOME)
|
|
|
|
# if stow is not available, symlink configs instead
|
|
# this is currently outdated
|
|
.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
|
|
$(LN) $(DOTFILES_DIR)/git/.gitconfig $(TARGET_DIR)/.gitconfig
|