-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (42 loc) · 1.55 KB
/
Makefile
File metadata and controls
56 lines (42 loc) · 1.55 KB
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
.PHONY: help bootstrap link link-backup unlink doctor brew-install brew-upgrade brew-sync brew-snapshot brew-prune brew-prune-zap lint test
help:
@echo "Targets:"
@echo " make bootstrap Install brew deps (no-upgrade) + link dotfiles"
@echo " make link Link dotfiles into \$$HOME (stow)"
@echo " make link-backup Link with automatic backup of conflicting files"
@echo " make unlink Remove stow-managed symlinks"
@echo " make doctor Non-destructive sanity checks"
@echo " make brew-install Install from Brewfile (no-upgrade)"
@echo " make brew-upgrade Install from Brewfile with upgrades"
@echo " make brew-sync Merge installed brew items into Brewfile"
@echo " make brew-snapshot Write Brewfile.versions"
@echo " make brew-prune Remove brew items not in Brewfile (destructive)"
@echo " make brew-prune-zap Like brew-prune, but zap casks (more destructive)"
@echo " make lint Lint Brewfile (duplicates/conflicts)"
@echo " make test Run unit tests (bats)"
bootstrap:
./bin/dotfiles bootstrap
link:
./bin/dotfiles link
link-backup:
./bin/dotfiles link --backup
unlink:
./bin/dotfiles unlink
doctor:
./bin/dotfiles doctor
brew-install:
./bin/dotfiles brew install
brew-upgrade:
./bin/dotfiles brew install --upgrade
brew-sync:
./bin/dotfiles brew sync
brew-snapshot:
./bin/dotfiles brew snapshot
brew-prune:
./bin/dotfiles brew prune
brew-prune-zap:
./bin/dotfiles brew prune --zap
lint:
python3 scripts/brewfile_lint.py Brewfile
test:
bats tests