-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (30 loc) · 837 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
FISH := $(shell fish --version 2>/dev/null)
BREW := $(shell brew --version 2>/dev/null)
CLI_TOOLS := $(xcode-select --install 2>&1 | grep installed;)
RUSTUP := $(shell rustup --version 2>/dev/null)
default:
make stow
stow:
stow fish
stow git
stow alacritty
stow bat
install:
ifndef CLI_TOOLS
else
xcode-select --install
endif
ifndef RUSTUP
echo "Rustup isn't installed... Installing"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
endif
ifndef BREW
echo "Homebrew isn't installed... Installing"
/bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /Users/dg/.zprofile
echo 'eval "$$(/opt/homebrew/bin/brew shellenv)"' >> /Users/dg/.zprofile
eval "$$(/opt/homebrew/bin/brew shellenv)"
else
endif
/opt/homebrew/bin/brew bundle
make stow