12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- 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)
- Linux: bash fish git mutt byobu weechat vim nvim gnupg bin
- Windows: bash git vim
- Other: bash git vim
- 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
- stow -t "$$HOME" -D nvim
- stow -t "$$HOME" -D mutt
- stow -t "$$HOME" -D byobu
- stow -t "$$HOME" -D weechat
- stow -t "$$HOME" -D gnupg
- stow -t "$$HOME" -D bin
- bash:
- @printf "$(YELLOW)--- bash -----------------------------------------------\n$(RESET)"
- stow -t "$$HOME" bash
- fish:
- @printf "$(YELLOW)--- fish -----------------------------------------------\n$(RESET)"
- stow -t "$$HOME" fish
- fish -c fisher
- git:
- @printf "$(YELLOW)--- git ------------------------------------------------\n$(RESET)"
- stow -t "$$HOME" git
- vim:
- @printf "$(YELLOW)--- vim ------------------------------------------------\n$(RESET)"
- stow -t "$$HOME" vim
- nvim:
- @printf "$(YELLOW)--- nvim -----------------------------------------------\n$(RESET)"
- stow -t "$$HOME" nvim
- 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
- gnupg:
- @printf "$(YELLOW)--- gnupg ----------------------------------------------\n$(RESET)"
- mkdir -p "$$HOME/.gnupg"
- chmod 700 "$$HOME/.gnupg"
- stow -t "$$HOME" gnupg
- 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
|