-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
36 lines (28 loc) · 909 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
29
30
31
32
33
34
35
36
SUBFOLDERS := $(wildcard */)
# ensures all make targets run in one shell (rather than line by line in new shell)
.ONESHELL:
default: bootstrap stow brew_base
echo "Done installing"
stow:
@for folder in $(SUBFOLDERS); do \
stow -v -d . -t ~ $$folder; \
done
@echo "Stowing complete!"
# Apply Brewfile
brew:
brew update
brew bundle install
bootstrap:
# install brew
/bin/bash -c "CI=1 $$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /home/$$USER/.bashrc
echo 'eval "$$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/$$USER/.bashrc
eval "$$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew_base:
brew bundle install --file Brewfile.base
brew_extra:
brew bundle install --file Brewfile.extra
brew_casks:
brew bundle install --file Brewfile.casks
brew_macos: brew_base brew_extra brew_casks
brew bundle install --file Brewfile.macos