31 lines
710 B
Makefile
31 lines
710 B
Makefile
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
|
|
-rm -rf $(HOME)/.local/state/nvim
|
|
-rm -rf $(HOME)/.cache/nvim
|
|
-rm $(BIN_DIR)/nvim
|
|
-rm $(BIN_DIR)/direnv
|
|
-rm -rf $(FONTS_DIR)/FiraCode
|
|
|
|
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
|
|
./installers/firacode.sh && fc-cache
|
|
|
|
$(BIN_DIR) $(FONTS_DIR):
|
|
mkdir -p $@
|