nvim/Makefile

17 lines
706 B
Makefile
Raw Normal View History

CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config)
BIN_DIR := $(HOME)/.local/bin
.PHONY: default clean
default: $(CONFIG_DIR) $(BIN_DIR)
fc-list | grep -iE "(fira.*code)*(nerd.*font)" > /dev/null || ./installers/firacode.sh && fc-cache
command -v nvim > /dev/null || ./installers/nvim.sh
command -v direnv > /dev/null || bin_path="$(BIN_DIR)" ./installers/direnv.sh
clean:
[ -e $(HOME)/.fonts/FiraCode ] && rm -rf $(HOME)/.fonts/FiraCode
[ -e $(HOME)/.local/share/nvim ] && rm -rf $(HOME)/.local/share/nvim
[ -e $(HOME)/.local/state/nvim ] && rm -rf $(HOME)/.local/state/nvim
[ -e $(BIN_DIR)/nvim ] && rm $(BIN_DIR)/nvim
[ -e $(BIN_DIR)/direnv ] && rm $(BIN_DIR)/direnv