-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 805 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
SHELL:=/bin/bash
.PHONY: all dots scripts clean ansible clean-links
all: dots scripts clean-links
dots:
ln -sf $(PWD)/.alacritty.yml ~/
ln -sf $(PWD)/.bash_aliases ~/
ln -sf $(PWD)/.bash_completion ~/
ln -sf $(PWD)/.bashrc ~/
ln -sf $(PWD)/.editorconfig ~/
ln -sf $(PWD)/.latexmkrc ~/
ln -sf $(PWD)/.pg_format ~/
ln -sf $(PWD)/.tmux.conf ~/
ln -sf $(PWD)/.vimrc ~/
ln -sf $(PWD)/.yamlfmt.yml ~/
ln -sf $(PWD)/gitconfig ~/.gitconfig
ln -sf $(PWD)/gitignore ~/.gitignore
cp -asfv $(PWD)/.gnupg ~/
cp -asfv $(PWD)/.config ~/
scripts:
mkdir -p ~/bin
cp -asfv $(PWD)/scripts/* ~/bin/
clean-links:
find ~ -xtype l -delete
clean:
find ~ -type l -lname "$(PWD)/*" -delete
ansible:
cd ansible && \
ansible-galaxy install -r requirements.yml && \
ansible-playbook playbooks/local.yml -K