-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (43 loc) · 809 Bytes
/
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
name := machine
.PHONY: install
install: \
~/.profile \
install-packages \
install-modules
.PHONY: ~/.profile
~/.profile: profile
$(info [$(name)] symlinking $@...)
@ln -fsT $(abspath $<) $@
.PHONY: install-packages
install-packages:
$(info [$(name)] Installing packages...)
@sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
curl \
dos2unix \
dstat \
entr \
fd-find \
filezilla \
git \
git-lfs \
gnupg \
htop \
iftop \
jq \
keepassxc \
moreutils \
ncdu \
net-tools \
ngrep \
qbittorrent \
ripgrep \
wine-stable \
wl-clipboard \
| sed -e "s/^/[${name}:$@] /"
.PHONY: install-modules
install-modules:
$(info [$(name)] Installing modules...)
@find . -mindepth 2 -maxdepth 2 -name Makefile | xargs dirname | xargs -n1 make -C