-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 1.23 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
30
31
32
33
34
35
36
check:
@echo "###############################################################################"
@echo " dotfiles managment script "
@echo "###############################################################################"
@echo "- HOME set to $(HOME)"
@echo "- Use make install to install/update all files in HOME directory"
@echo "- Use make update to update all config files in git repository"
@echo "###############################################################################"
install: $(HOME)/.tmux.conf $(HOME)/.gitconfig $(HOME)/.bashrc $(HOME)/.vim/vimrc
$(HOME)/.tmux.conf: .tmux.conf
@echo "Updating .tmux.conf in $(HOME)"
cp .tmux.conf $(HOME)/.tmux.conf
$(HOME)/.gitconfig: .gitconfig
@echo "Updating .gitconfig in $(HOME)"
cp .gitconfig $(HOME)/.gitconfig
$(HOME)/.bashrc: .bashrc
@echo "Updating .bashrc in $(HOME)"
cp .bashrc $(HOME)/.bashrc
$(HOME)/.vim/vimrc: .vim/vimrc
cp .vim/vimrc $(HOME)/.vim/vimrc
bootstrap:
mkdir -p $(HOME)/.vim/bundle
git clone https://github.com/VundleVim/Vundle.vim.git $(HOME)/.vim/bundle/Vundle.vim
update:
cp $(HOME)/.tmux.conf .tmux.conf
cp $(HOME)/.gitconfig .gitconfig
cp $(HOME)/.bashrc .bashrc
cp $(HOME)/.vim/vimrc .vim/vimrc