-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (27 loc) · 1.24 KB
/
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
all:
[ -f ~/.aliases ] || ln -s $(PWD)/aliases ~/.aliases
[ -d ~/.config/git ] || mkdir -p ~/.config/git
[ -f ~/.config/git/config ] || ln -s $(PWD)/gitconfig ~/.config/git/config
[ -f ~/.config/git/ignore ] || ln -s $(PWD)/gitignore ~/.config/git/ignore
[ -d ~/.config/nvim ] || mkdir -p ~/.config/nvim
[ -f ~/.config/nvim/init.vim ] || ln -s $(PWD)/init.vim ~/.config/nvim/init.vim
[ -f ~/.exports ] || ln -s $(PWD)/exports ~/.exports
[ -f ~/.path ] || ln -s $(PWD)/path ~/.path
[ -f ~/.tmux.conf ] || ln -s $(PWD)/tmux.conf ~/.tmux.conf
[ -f ~/.vimrc ] || ln -s $(PWD)/vimrc ~/.vimrc
[ -f ~/.zsh_profile ] || ln -s $(PWD)/zsh_profile ~/.zsh_profile
[ -f ~/.zshrc ] || ln -s $(PWD)/zshrc ~/.zshrc
[ -f ~/Brewfile ] || ln -s $(PWD)/Brewfile ~/Brewfile
clean:
[ -h ~/.aliases ] || rm ~/.aliases
[ -h ~/.config/git/config ] || rm ~/.config/git/config
[ -h ~/.config/git/ignore ] || rm ~/.config/git/ignore
[ -h ~/.config/nvim/init.vim ] || rm ~/.config/nvim/init.vim
[ -h ~/.exports ] || rm ~/.exports
[ -h ~/.path ] || rm ~/.path
[ -h ~/.tmux.conf ] | rm ~/.tmux.conf
[ -h ~/.vimrc ] && rm ~/.vimrc
[ -h ~/.zsh_profile ] && rm ~/.zsh_profile
[ -h ~/.zshrc ] && rm ~/.zshrc
[ -f ~/Brewfile ] || ln -s $(PWD)/Brewfile ~/Brewfile
.PHONY: all