-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
40 lines (31 loc) 路 1.14 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
CCRED=\033[0;31m
CCEND=\033[0m
.PHONY: build backup restore clean chezmoi help
help: ## Show this help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
build: ## Build / update mac setup
ansible-playbook -vv provisionMac.yml
backup: ## Backup mac configuration
ansible-playbook -vv provisionMac.yml
restore: ## Restore mac configuration
ansible-playbook -vv provisionMac.yml
clean:
rm -rf /tmp ## Delete temporary files
ssh: ## Adding key to the ssh-agent
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/githubCom
install: ## Initial setup
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew analytics off
echo "Update Git"
brew install git
echo "Install Ansible and prerequisites"
brew install ansible
brew install chezmoi
rew install 1password-cli
echo "**********************************************"
echo "Installation complete"
echo "**********************************************"
@brew list
chezmoi: ## Chezmoi initial setup
chezmoi init https://github.com/bhdicaire/dotFiles.git