-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (41 loc) · 1000 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
# Setup ansible
bootstrap0:
sudo apt install -y software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt install -y ansible
bootstrap:
ansible-playbook setup.yml --ask-become-pass --ask-vault-pass
# install home dotfiles
install/home:
cd ./HOME; \
for i in .*; do \
if [ -f $$i ]; then \
echo "Installing $$i"; \
ln -sf $(shell pwd)/HOME/$$i ${HOME}/$$i; \
fi; \
done
install/xdg:
cd ./XDG_CONFIG; \
for i in *; do \
if [ -d $$i ]; then \
echo "Installing $$i"; \
echo $(shell pwd)/XDG_CONFIG/$$i ${HOME}/.config/$$i; \
# ln -sf $(shell pwd)/XDG_CONFIG/$$i ${HOME}/.config/$$i; \
fi; \
done
install/bin:
if [ ! -d ${HOME}/.local/bin ]; then \
mkdir -p ${HOME}/.local/bin; \
fi
cd ./bin; \
for i in *; do \
if [ -f $$i ]; then \
echo "Installing $$i"; \
ln -sf $(shell pwd)/bin/$$i ${HOME}/.local/bin/$$i; \
fi; \
done
eval/ssh:
eval `ssh-agent -s`
ssh-add ~/.ssh/id_ed25519
test/echo:
echo $(shell pwd)