-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (23 loc) · 825 Bytes
/
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
all: install sync
install:
@echo "--- Install Homebrew and applications ---"
@if ! command -v brew > /dev/null; then\
/bin/zsh -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)";\
fi
brew bundle --file install/Brewfile
brew cleanup && brew doctor
@echo "--- Instal Oh my zsh ---"
@zsh -c "$$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@echo "--- Configure GPG ---"
@echo "pinentry-program /usr/local/bin/pinentry-mac" > ~/.gnupg/gpg-agent.conf
@killall gpg-agent
sync:
@echo "--- Sync dotfiles ---"
@for file in *; do\
if [[ "$$file" == Makefile || "$$file" == install || "$$file" == README.md ]]; then\
continue;\
fi;\
echo "Syncing .$$file";\
ln -sf $$(pwd)/"$$file" ~/."$$file";\
done
.PHONY: install sync