-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 775 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 775 Bytes
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
.PHONY: install adopt uninstall restow brew apt
PACKAGES := editor emacs ghostty lint nvim ruff shell starship tmux
STOW ?= stow
STOW_TARGET ?= $(HOME)
install:
$(STOW) -t $(STOW_TARGET) --restow $(PACKAGES)
adopt:
$(STOW) -t $(STOW_TARGET) --adopt $(PACKAGES)
$(STOW) -t $(STOW_TARGET) --restow $(PACKAGES)
@printf 'Review and commit the adopted files before continuing.\n'
uninstall:
$(STOW) -t $(STOW_TARGET) -D $(PACKAGES)
restow:
$(STOW) -t $(STOW_TARGET) --restow $(PACKAGES)
brew:
brew install stow neovim tmux ripgrep btop node ccache fzf starship \
pre-commit stylua shfmt shellcheck gitleaks clang-format
apt:
sudo apt update && sudo apt install -y stow neovim tmux zsh ripgrep btop ccache fzf starship \
pre-commit shfmt shellcheck clang-format