BIN_DIR := $(HOME)/.local/bin FONTS_DIR := $(HOME)/.fonts .PHONY: default clean nvim direnv firacode default: command -v nvim > /dev/null || make nvim command -v direnv > /dev/null || make direnv fc-list | grep -iE "(fira.*code)*(nerd.*font)" > /dev/null || make firacode clean: rm -rf $(HOME)/.local/share/nvim || continue rm -rf $(HOME)/.local/state/nvim || continue rm $(BIN_DIR)/nvim || continue rm $(BIN_DIR)/direnv || continue rm -rf $(FONTS_DIR)/FiraCode || continue nvim: $(BIN_DIR) ./installers/nvim.sh direnv: $(BIN_DIR) bin_path="$(BIN_DIR)" ./installers/direnv.sh firacode: $(FONTS_DIR) ./installers/firacode.sh && fc-cache $(BIN_DIR) $(FONTS_DIR): mkdir -p $@