-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
64 lines (52 loc) · 2.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CONFIG_DIRS_DOTFILES := $(sort $(dir $(wildcard dotfiles/.config/*/) ) )
CONFIG_DIRS_HOME := $(subst dotfiles, ~, $(CONFIG_DIRS_DOTFILES))
.PHONY: help
help: ## Print each target and its associated help message
@grep -E '^[%a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
################################################################################
# Dotfiles
################################################################################
.PHONY: dotfiles
dotfiles: config_directories ## Create the symlinks to the dotfiles
xstow -t ~ -R dotfiles/
.PHONY: config_directories
config_directories: $(CONFIG_DIRS_HOME) ## Create the directories in the HOME folder
~/.config/%: dotfiles/.config/%
-mkdir -p $@
################################################################################
# Tools
################################################################################
.PHONY: zinit
zinit: ## Install zinit
mkdir -p "$$(dirname $$ZINIT_HOME)"
git clone https://github.com/zdharma-continuum/zinit.git "$$ZINIT_HOME"
.PHONY: asdf-vm
asdf-vm: ## Install asdf-vm
git clone https://github.com/asdf-vm/asdf.git ~/.config/asdf --branch v0.10.2 --depth=1
.PHONY: vim-packager
vim-packager: ## Install vim-packager
git clone https://github.com/kristijanhusak/vim-packager ~/.config/nvim/pack/packager/opt/vim-packager
.PHONY: tools
tools: asdf-vim vim-packager ## Install required tools
################################################################################
# Optionals
################################################################################
.PHONY: tpm
tpm: ## Install tpm tmux plugin manager
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
@echo "Remember to execute <prefix>I inside tmux to install your plugins"
.PHONY: zoxide
zoxide: ## Install zoxide
curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
.PHONY: rust-tools
rust-tools: ## Install rust tools
cargo install \
bat \
fd-find \
git-delta \
lsd \
ripgrep \
sd \
tailspin \
vivid