nvim/Makefile

30 lines
681 B
Makefile
Raw Normal View History

BIN_DIR := $(HOME)/.local/bin
2023-05-16 10:24:39 +01:00
FONTS_DIR := $(HOME)/.fonts
2023-05-16 10:24:39 +01:00
.PHONY: default clean nvim direnv firacode
2023-05-16 10:24:39 +01:00
default:
command -v nvim > /dev/null || make nvim
command -v direnv > /dev/null || make direnv
2023-06-02 10:01:00 +01:00
-fc-list | grep -iE "(fira.*code)*(nerd.*font)" > /dev/null || make firacode
clean:
-rm -rf $(HOME)/.local/share/nvim
-rm -rf $(HOME)/.local/state/nvim
-rm $(BIN_DIR)/nvim
-rm $(BIN_DIR)/direnv
-rm -rf $(FONTS_DIR)/FiraCode
2023-05-16 10:24:39 +01:00
nvim: $(BIN_DIR)
./installers/nvim.sh
direnv: $(BIN_DIR)
bin_path="$(BIN_DIR)" ./installers/direnv.sh
firacode: $(FONTS_DIR)
command -v fc-cache > /dev/null || exit 1
2023-05-16 10:24:39 +01:00
./installers/firacode.sh && fc-cache
$(BIN_DIR) $(FONTS_DIR):
mkdir -p $@