-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
49 lines (38 loc) · 1.21 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
.PHONY: install karabiner phoenix macos brew brew-restore phoenix-dev
# Run dotbot install script
install:
./install
link:
./install --only link
# Build and output karabiner.json
karabiner:
deno run --allow-env --allow-read --allow-write karabiner/karabiner.ts
karabiner-dev:
deno run --watch --allow-env --allow-read --allow-write karabiner/karabiner.ts
# Build and output phoenix config
phoenix:
yarn --cwd phoenix run build
# Watch and build phoenix config
phoenix-dev:
yarn --cwd phoenix run dev
# Install extensions from vscode/extensions.txt
vscode-install:
cat ${DOTFILES}/vscode/extensions.txt | xargs -L 1 code --install-extension
# Save all current extensions to vscode/extensions.txt
vscode-save:
code --list-extensions > ${DOTFILES}/vscode/extensions.txt
# Save snapshot of all Homebrew packages to macos/Brewfile
brew:
brew bundle dump -f --file=macos/Brewfile
brew bundle --force cleanup --file=macos/Brewfile
# Restore Homebrew packages
brew-restore:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew upgrade
brew install mas
brew bundle install --file=macos/Brewfile
brew cleanup
# Set MacOS defaults
macos:
./macos/set-defaults.sh