2023-05-16 10:11:44 +01:00
|
|
|
BIN_DIR := $(HOME)/.local/bin
|
2023-05-16 10:24:39 +01:00
|
|
|
FONTS_DIR := $(HOME)/.fonts
|
2023-05-16 10:11:44 +01:00
|
|
|
|
2023-05-16 10:24:39 +01:00
|
|
|
.PHONY: default clean nvim direnv firacode
|
2023-05-16 10:11:44 +01:00
|
|
|
|
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
|
2023-05-16 10:11:44 +01:00
|
|
|
|
|
|
|
clean:
|
2023-05-31 20:28:33 +01:00
|
|
|
-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)
|
2023-05-16 13:18:07 +01:00
|
|
|
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 $@
|