-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (38 loc) · 1.2 KB
/
Makefile
File metadata and controls
55 lines (38 loc) · 1.2 KB
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
.PHONY: windows linux-ubuntu linux-other macos tangle nvm
EMACS = emacs
ESSENTIALS = coreutils moreutils git zsh python3 luajit luarocks
PHASE_1 = lua5.1 vim jq miller curl gcc ispell
PHASE_2 = ripgrep
all: tangle
windows:
@echo "No suitable build process."
linux-ubuntu:
@echo "Building up an Ubuntu foundation..."
-@sudo snap install emacs
@echo "Installing essentials..."
-@sudo apt install $(ESSENTIALS)
@echo "Installing Phase 1..."
-@sudo apt install $(PHASE_1)
@echo "Installing Phase 2..."
-@sudo apt install $(PHASE_2)
@echo "Done installing packages."
linux-other:
@echo "No suitable build process."
macos:
@echo "Building up a MacOS foundation..."
@echo "Installing essentials..."
-@brew install $(ESSENTIALS)
-@brew install $(EMACS)
@echo "Installing Phase 1..."
-@brew install $(PHASE_1)
@echo "Installing Phase 2..."
-@brew install $(PHASE_2)
@echo "Done installing packages."
tangle:
@echo "Rolling out the red carpet..."
@emacs -Q --batch --eval '(require (quote org))' --eval '(org-babel-tangle-file "home-sweet-home.org")'
@clear
@echo "Welcome home."
nvm:
@echo "Installing nvm..."
@curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash