-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
88 lines (77 loc) · 1.82 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
DOT_CONFIG_DIRS_REL = $(wildcard dotfiles/.config/*)
DOT_CONFIG_DIRS_LINK = $(subst dotfiles, ~, $(DOT_CONFIG_DIRS_REL))
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
# TODO: sysfiles firefox.pref for correct firefox beta installation
.PHONY: linux-bootstrap
linux-bootstrap: ## Installs a bunch of utilized system dependencies
sudo apt update
sudo apt install -y \
xclip \
xsel \
git \
neovim \
zsh \
stow \
redshift-gtk \
htop \
tree \
graphviz \
tmux \
alacritty \
build-essential \
python3-dev \
python3-venv \
libffi-dev \
libssl-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
tk-dev \
xz-utils \
llvm \
libncurses5-dev \
libncursesw5-dev \
liblzma-dev \
zlib1g-dev \
snapd \
automake \
autoconf \
libreadline-dev \
libncurses-dev \
libssl-dev \
libyaml-dev \
libxslt-dev \
libffi-dev \
libtool \
unixodbc-dev \
unzip \
curl
.PHONY: dot_config
dot_config: $(DOT_CONFIG_DIRS_LINK)
~/.config/%: dotfiles/.config/%
mkdir -p $@
.PHONY: link-dotfiles
link-dotfiles: dot_config ## links dotfiles to home directory via stow
stow -t ~ -R dotfiles
.PHONY: unlink-dotfiles
unlink-dotfiles: dot_config ## removes stow-managed sym links
stow -t ~ -D dotfiles
~/.zinit:
git clone https://github.com/zdharma-continuum/zinit ~/.zinit
# Check that these versions are the latest that you want
.PHONY: init-envs
init-envs: ~/.zinit # sets up zinit
.PHONY: python-packages
python-packages: pipx-install
zsh -i -c pythonglobal-install
.PHONY: node-packages
node-packages: SHELL:=/bin/zsh
node-packages: ## installs node packages that are leveraged often
zsh -i -c nodeglobal-install
.PHONY: rust-packages
rust-packages:
cargo install ripgrep git-delta