dotfiles/Makefile

87 lines
2.3 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)
2024-09-13 05:55:18 +00:00
Linux: bash bin byobu fish git gnupg mutt nvim 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
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
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}
2022-12-03 04:09:58 +00:00
git submodule update --remote --init -- vim/.vim/pack/plugins
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*
2024-09-13 05:55:18 +00:00
.PHONY: bash fish git vim nvim mutt byobu weechat gnupg bin clean install nuke Windows Linux Other