2018-07-22 21:42:42 +00:00
|
|
|
YELLOW = $$(tput setaf 226)
|
|
|
|
GREEN = $$(tput setaf 46)
|
|
|
|
RED = $$(tput setaf 196)
|
|
|
|
RESET = $$(tput sgr0)
|
|
|
|
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
UNAME = Windows
|
|
|
|
else
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
ifeq ($(UNAME_S),Linux)
|
|
|
|
UNAME = Linux
|
|
|
|
endif
|
|
|
|
UNAME ?= Other
|
|
|
|
endif
|
|
|
|
|
|
|
|
install:
|
|
|
|
@make $(UNAME)
|
|
|
|
|
2018-08-05 14:07:29 +00:00
|
|
|
Linux: bash fish git mutt byobu weechat vim nvim gnupg
|
2018-07-23 06:01:47 +00:00
|
|
|
Windows: bash git vim
|
|
|
|
Other: bash git vim
|
2018-07-22 21:42:42 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@printf "$(RED)--- clean -----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" -D bash
|
|
|
|
stow -t "$$HOME" -D fish
|
|
|
|
stow -t "$$HOME" -D git
|
|
|
|
stow -t "$$HOME" -D vim
|
2018-08-05 14:07:29 +00:00
|
|
|
stow -t "$$HOME" -D nvim
|
2018-07-22 21:42:42 +00:00
|
|
|
stow -t "$$HOME" -D mutt
|
|
|
|
stow -t "$$HOME" -D byobu
|
|
|
|
stow -t "$$HOME" -D weechat
|
2018-07-31 20:42:46 +00:00
|
|
|
stow -t "$$HOME" -D gnupg
|
2018-07-22 21:42:42 +00:00
|
|
|
|
|
|
|
bash:
|
|
|
|
@printf "$(YELLOW)--- bash -----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" bash
|
|
|
|
|
|
|
|
fish:
|
|
|
|
@printf "$(YELLOW)--- fish -----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" fish
|
|
|
|
|
|
|
|
git:
|
|
|
|
@printf "$(YELLOW)--- git ------------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" git
|
|
|
|
|
|
|
|
vim:
|
|
|
|
@printf "$(YELLOW)--- vim ------------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" vim
|
2018-08-09 00:20:19 +00:00
|
|
|
[[ -f ~/.spf13-vim/bootstrap.sh ]] || \
|
2018-08-04 15:53:13 +00:00
|
|
|
git submodule update --init
|
2018-07-22 22:02:48 +00:00
|
|
|
~/.spf13-vim/bootstrap.sh
|
2018-07-22 21:42:42 +00:00
|
|
|
|
2018-08-05 14:07:29 +00:00
|
|
|
nvim:
|
|
|
|
@printf "$(YELLOW)--- nvim -----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" nvim
|
|
|
|
|
2018-07-22 21:42:42 +00:00
|
|
|
mutt:
|
|
|
|
@printf "$(YELLOW)--- mutt -----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" mutt
|
|
|
|
|
|
|
|
byobu:
|
|
|
|
@printf "$(YELLOW)--- byobu ----------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" byobu
|
|
|
|
|
|
|
|
weechat:
|
|
|
|
@printf "$(YELLOW)--- weechat --------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" weechat
|
|
|
|
|
2018-07-31 20:42:46 +00:00
|
|
|
gnupg:
|
|
|
|
@printf "$(YELLOW)--- gnupg ----------------------------------------------\n$(RESET)"
|
2018-08-01 03:47:54 +00:00
|
|
|
mkdir -p "$$HOME/.gnupg"
|
|
|
|
chmod 700 "$$HOME/.gnupg"
|
2018-07-31 20:42:46 +00:00
|
|
|
stow -t "$$HOME" gnupg
|
|
|
|
|
2018-08-05 14:07:29 +00:00
|
|
|
.PHONY: bash fish git vim nvim mutt byobu weechat gnupg clean install Windows Linux Other
|
2018-07-22 21:42:42 +00:00
|
|
|
|