-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
55 lines (37 loc) · 1.4 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
.PHONY: help
help: ## Print command list
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
_prepare:
@git submodule update --init --recursive
_bootstrap:
@./install -c config/bootstrap.conf.yml
bootstrap: _prepare dotfiles _bootstrap ## Bootstrap new machine
termux: _prepare dotfiles termux ## Bootstrap new termux
mac:
@./install -c config/macos.conf.yml --plugin-dir dotbot-brew
termux:
@./install -c config/termux.conf.yml
dotfiles: ## Update dotfiles
@./install
linux:
@./install -c config/apt.conf.yml --plugin-dir dotbot-apt-get
snap:
@./install -c config/snap.conf.yml --plugin-dir dotbot-snap
macos: ## Run macos script
@./mac_bootstrap.sh
@./macos/init_mac.sh
crontab:
@./install --plugin-dir crontab-dotbot -c config/crontab.conf.yml
brew: ## Install brew & cask packages
@./install -c config/packages.conf.yml --plugin-dir dotbot-brew
tmux: ## Install non-brew tools eg. tmux package manager
@./install -c config/tmux.conf.yml
asdf: ## Install asdf-vm
@./install -c config/asdf-install.conf.yml --plugin-dir dotbot-brew
@./install -c config/asdf.conf.yml --plugin-dir dotbot-asdf
update: ## Update everything
@make _prepare
@./install -c config/update.conf.yml
vim: ## Setup vim
@./install -c config/vim.conf.yml
all: _prepare dotfiles _bootstrap brew tmux asdf ## Run all tasks at once