-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
55 lines (46 loc) · 1.77 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
LOGFILE=/tmp/dotfiles.log
default: run
help:
@echo 'Management commands for dotfiles:'
@echo
@echo 'Usage:'
# @echo ' make chezmoi-init Initialize chezmoi.'
# @echo ' make chezmoi-apply Apply chezmoi files (runs all scripts).'
# @echo ' make post-chezmoi Run post chezmoi scripts.'
@echo ' make install-homebrew Install Homebrew.'
# @echo ' make install-chezmoi Install chezmoi.'
@echo ' make install-asdf Install asdf and plugins.'
@echo ' make install-nvm Install nvm.'
@echo ' make install-basis Initial installation run.'
@echo ' make install-bw Install Bitwarden CLI.'
@echo ' make install-gpg-keys Install personal GPG key.'
# @echo ' make install-deps Install system dependencies.'
# @echo ' make ensure-dirs Creates required directories.'
# @echo ' make install-riscv Install RISC-V toolchain and dependencies.'
# @echo ' make install-osx-app Install MacOS applications (requires mas).'
@echo
@echo ' make run Ensure deps and apply chezmoi.'
@echo ' make all Run all.'
@echo
@echo ' Logs are stored in $(LOGFILE)'
@echo
@echo ' Author Matthew Wells (github.com/mdespuits)'
install-basis:
bash ./install.sh | tee -a $(LOGFILE)
install-homebrew:
bash ./scripts/install_homebrew.sh | tee -a $(LOGFILE)
install-asdf:
bash ./scripts/install_asdf.sh | tee -a $(LOGFILE)
install-nvm:
bash ./scripts/install_nvm.sh | tee -a $(LOGFILE)
install-bw:
$(MAKE) install-homebrew
bash ./scripts/install_bitwarden.sh | tee -a $(LOGFILE)
install-gpg-keys:
$(MAKE) install-bw
bash ./scripts/install_gpg_keys.sh | tee -a $(LOGFILE)
all:
$(MAKE) install-homebrew
$(MAKE) install-bw
$(MAKE) install-gpg-keys
run: all