-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
165 lines (115 loc) · 2.8 KB
/
Makefile
File metadata and controls
165 lines (115 loc) · 2.8 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
PWD = $(shell pwd)
DOCKER = docker
DOCKER_USERNAME = user
DOCKER_PASSWORD = password
DOCKER_IMAGE_NAME = dotfiles
DOCKER_CONTAINER_NAME = dotfiles
DOCKERFILE_PATH = $(PWD)/Dockerfile
.PHONY: all brew \
apps anyenv_app fzf_app git_app nvim_app tmux_app zsh_app efm_app \
languages clang golang node python rust nim ruby vala zig crystal \
configs editorconfig git nvim tmux zsh efm ghostty opencode serena \
docker docker_attach docker_build docker_run docker_stop \
clean editorconfig_clean git_clean nvim_clean tmux_clean zsh_clean
all: clean apps configs
brew:
$(PWD)/bin/brew_install.sh
#
# APPS
#
apps: git_app anyenv_app fzf_app nvim_app tmux_app zsh_app efm_app
anyenv_app:
$(PWD)/bin/anyenv_install.sh
fzf_app:
$(PWD)/bin/fzf_install.sh
git_app:
$(PWD)/git/bin/install.sh
nvim_app:
$(PWD)/nvim/bin/install.sh
tmux_app:
$(PWD)/tmux/bin/install.sh
zsh_app:
$(PWD)/zsh/bin/install.sh
efm_app:
$(PWD)/efm/bin/install.sh
#
# LANGUAGES
#
languages: clang golang node python rust nim ruby vala zig crystal lua
clang:
$(PWD)/bin/clang_install.sh
golang:
$(PWD)/bin/golang_install.sh
node: anyenv_app
$(PWD)/bin/node_install.sh
python: anyenv_app
$(PWD)/bin/python_install.sh
rust:
$(PWD)/bin/rust_install.sh
nim:
$(PWD)/bin/nim_install.sh
ruby:
$(PWD)/bin/ruby_install.sh
vala:
$(PWD)/bin/vala_install.sh
zig:
$(PWD)/bin/zig_install.sh
crystal:
$(PWD)/bin/crystal_install.sh
lua:
$(PWD)/bin/lua_install.sh
#
# CONFIGS
#
configs: git editorconfig nvim tmux zsh
editorconfig:
$(PWD)/editorconfig/bin/setup.sh
git: git_app
$(PWD)/git/bin/setup.sh
nvim: node nvim_app
$(PWD)/nvim/bin/setup.sh
tmux: tmux_app
$(PWD)/tmux/bin/setup.sh
zsh: zsh_app
$(PWD)/zsh/bin/setup.sh
efm: efm_app
$(PWD)/efm/bin/setup.sh
ghostty:
$(PWD)/ghostty/bin/setup.sh
opencode:
$(PWD)/opencode/bin/setup.sh
serena:
$(PWD)/serena/bin/setup.sh
#
# DOCKER
#
docker: docker_build docker_run
docker_build:
$(DOCKER) build -t $(DOCKER_IMAGE_NAME) -f $(DOCKERFILE_PATH) $(PWD) \
--build-arg username=$(DOCKER_USERNAME) --build-arg password=$(DOCKER_PASSWORD)
docker_run: docker_build
$(DOCKER) run -it --name $(DOCKER_CONTAINER_NAME) $(DOCKER_IMAGE_NAME)
docker_attach:
$(DOCKER) attach $(DOCKER_CONTAINER_NAME)
docker_stop:
$(DOCKER) stop $(DOCKER_CONTAINER_NAME)
docker_rm: docker_stop
$(DOCKER) rm $(DOCKER_CONTAINER_NAME)
#
# CLEAN
#
clean: editorconfig_clean git_clean nvim_clean tmux_clean zsh_clean
editorconfig_clean:
rm -rf $(HOME)/.editorconfig
git_clean:
rm -rf $(HOME)/.gitconfig
nvim_clean:
rm -rf $(HOME)/.config/nvim
rm -rf $(HOME)/.cache/nvim
rm -rf $(HOME)/.cache/dein
tmux_clean:
rm -rf $(HOME)/.tmux.conf
zsh_clean:
rm -rf $(HOME)/.zshrc
efm_clean:
rm -rf $(HOME)/.config/efm-langserver