bens-dotfiles/Makefile

100 lines
2.8 KiB
Makefile
Raw Normal View History

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)
2019-03-25 03:00:39 +00:00
Linux: bash fzf fish git mutt byobu weechat vim nvim gnupg bin emacs vscode sublime
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
2018-10-01 04:51:07 +00:00
stow -t "$$HOME" -D bin
stow -t "$$HOME" -D byobu
2018-07-22 21:42:42 +00:00
stow -t "$$HOME" -D fish
stow -t "$$HOME" -D git
2018-10-01 04:51:07 +00:00
stow -t "$$HOME" -D gnupg
2018-07-22 21:42:42 +00:00
stow -t "$$HOME" -D mutt
2018-10-01 04:51:07 +00:00
stow -t "$$HOME" -D nvim
stow -t "$$HOME" -D sublime
stow -t "$$HOME" -D vim
stow -t "$$HOME" -D vscode
2018-07-22 21:42:42 +00:00
stow -t "$$HOME" -D weechat
bash:
@printf "$(YELLOW)--- bash -----------------------------------------------\n$(RESET)"
stow -t "$$HOME" bash
2018-10-01 04:51:07 +00:00
bin:
@printf "$(YELLOW)--- bin ------------------------------------------------\n$(RESET)"
stow -t "$$HOME" bin
byobu:
@printf "$(YELLOW)--- byobu ----------------------------------------------\n$(RESET)"
stow -t "$$HOME" byobu
fish: fzf
2018-07-22 21:42:42 +00:00
@printf "$(YELLOW)--- fish -----------------------------------------------\n$(RESET)"
stow -t "$$HOME" fish
2019-03-25 03:00:39 +00:00
fzf:
@printf "$(YELLOW)--- fzf ------------------------------------------------\n$(RESET)"
git submodule update --init -- fzf/.fzf
stow -t "$$HOME" fzf
~/.fzf/install --no-bash --no-zsh --no-completion --no-update-rc --key-bindings --64
2019-03-25 03:00:39 +00:00
2018-07-22 21:42:42 +00:00
git:
@printf "$(YELLOW)--- git ------------------------------------------------\n$(RESET)"
stow -t "$$HOME" git
2018-10-01 04:51:07 +00:00
gnupg:
@printf "$(YELLOW)--- gnupg ----------------------------------------------\n$(RESET)"
mkdir -p "$$HOME/.gnupg"
chmod 700 "$$HOME/.gnupg"
stow -t "$$HOME" gnupg
mutt:
@printf "$(YELLOW)--- mutt -----------------------------------------------\n$(RESET)"
stow -t "$$HOME" mutt
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-10-01 04:51:07 +00:00
sublime:
@printf "$(YELLOW)--- sublime --------------------------------------------\n$(RESET)"
stow -t "$$HOME" sublime
2018-07-22 21:42:42 +00:00
2018-10-01 04:51:07 +00:00
vim:
@printf "$(YELLOW)--- vim ------------------------------------------------\n$(RESET)"
2019-03-12 05:58:05 +00:00
git submodule update --init -- vim/.vim/bundle
2018-10-01 04:51:07 +00:00
stow -t "$$HOME" vim
vscode:
@printf "$(YELLOW)--- vscode ---------------------------------------------\n$(RESET)"
stow -t "$$HOME" vscode
2018-07-22 21:42:42 +00:00
weechat:
@printf "$(YELLOW)--- weechat --------------------------------------------\n$(RESET)"
stow -t "$$HOME" weechat
nuke:
@printf "$(YELLOW)--- nuking existing files ------------------------------\n$(RESET)"
rm -rf ~/.byobu ~/.config/fish ~/.fzf ~/.bash*
.PHONY: bash fzf fish git vim nvim mutt byobu weechat gnupg bin vscode sublime clean install nuke Windows Linux Other