bens-dotfiles/Makefile

93 lines
2.5 KiB
Makefile
Raw Permalink 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)
2021-05-12 21:06:13 +00:00
Linux: bash bin byobu fish git gnupg mutt nvim pb vim weechat
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 vim
2018-07-22 21:42:42 +00:00
stow -t "$$HOME" -D weechat
2021-05-12 21:06:13 +00:00
$(MAKE) -C pb PREFIX=~/.local uninstall
2018-07-22 21:42:42 +00:00
bash:
@printf "$(YELLOW)--- bash -----------------------------------------------\n$(RESET)"
stow -t "$$HOME" bash
bin:
2018-10-01 04:51:07 +00:00
@printf "$(YELLOW)--- bin ------------------------------------------------\n$(RESET)"
2019-03-26 01:03:36 +00:00
mkdir -p "$$HOME/bin"
2018-10-01 04:51:07 +00:00
stow -t "$$HOME" bin
byobu:
@printf "$(YELLOW)--- byobu ----------------------------------------------\n$(RESET)"
stow -t "$$HOME" byobu
fish:
2018-07-22 21:42:42 +00:00
@printf "$(YELLOW)--- fish -----------------------------------------------\n$(RESET)"
stow -t "$$HOME" fish
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
2021-05-12 21:06:13 +00:00
pb:
@printf "$(YELLOW)--- pb -------------------------------------------------\n$(RESET)"
2021-05-12 21:07:16 +00:00
git submodule update --remote --init -- pb
2021-05-12 21:06:13 +00:00
$(MAKE) -C pb PREFIX=~/.local install
2018-10-01 04:51:07 +00:00
vim:
@printf "$(YELLOW)--- vim ------------------------------------------------\n$(RESET)"
mkdir -p ~/.vim/{undodir,swap,backup}
chmod 700 ~/.vim/{undodir,swap,backup}
2019-08-14 14:10:21 +00:00
git submodule update --remote --init -- vim/.vim/bundle
2018-10-01 04:51:07 +00:00
stow -t "$$HOME" vim
2018-07-22 21:42:42 +00:00
weechat:
@printf "$(YELLOW)--- weechat --------------------------------------------\n$(RESET)"
stow -t "$$HOME" weechat
nuke:
@printf "$(RED)--- nuking existing files ------------------------------\n$(RESET)"
rm -rf ~/.byobu ~/.config/fish ~/.fzf ~/.bash*
2021-05-12 21:06:13 +00:00
.PHONY: bash fish git pb vim nvim mutt byobu weechat gnupg bin clean install nuke Windows Linux Other