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-16 23:05:54 +00:00
|
|
|
Linux: bash fish git mutt byobu weechat vim nvim gnupg bin
|
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-08-16 23:05:54 +00:00
|
|
|
stow -t "$$HOME" -D bin
|
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
|
2018-08-11 05:38:12 +00:00
|
|
|
fish -c fisher
|
2018-07-22 21:42:42 +00:00
|
|
|
|
|
|
|
git:
|
|
|
|
@printf "$(YELLOW)--- git ------------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" git
|
|
|
|
|
|
|
|
vim:
|
|
|
|
@printf "$(YELLOW)--- vim ------------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" vim
|
|
|
|
|
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-16 23:05:54 +00:00
|
|
|
bin:
|
|
|
|
@printf "$(YELLOW)--- bin ------------------------------------------------\n$(RESET)"
|
|
|
|
stow -t "$$HOME" bin
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: bash fish git vim nvim mutt byobu weechat gnupg bin clean install Windows Linux Other
|
2018-07-22 21:42:42 +00:00
|
|
|
|