-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (20 loc) · 881 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
.PHONY: init
init: ## init dotfiles
test -L ${HOME}/.tmux || rm -rf ${HOME}/.tmux
ln -vsn ${PWD}/.tmux ${HOME}/.tmux
mkdir -p ${HOME}/.config/tmux || ln -vs ${PWD}/.tmux.conf ${HOME}/.config/tmux/tmux.conf
mkdir -p ${HOME}/.config/git || ln -vs ${PWD}/.gitconfig ${HOME}/.config/git/config
ln -vs ${PWD}/.gvimrc ${HOME}/.gvimrc
ln -vs ${PWD}/.vimrc ${HOME}/.vimrc
ln -vs ${PWD}/.xinitrc ${HOME}/.xinitrc
ln -vs ${PWD}/.Xresources ${HOME}/.Xresources
ln -vs ${PWD}/.zshenv ${HOME}/.zshenv
ln -vs ${PWD}/.zsh_plug ${HOME}/.zsh_plug
ln -vs ${PWD}/.zshrc ${HOME}/.zshrc
ln -vs ${PWD}/config/rofi/config ${HOME}/.config/rofi/config
ln -vs ${PWD}/config/dunst/dunstrc ${HOME}/.config/dunst/dunstrc
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help