about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2018-07-22 17:42:42 -0400
committerBen Harris <ben@tilde.team>2018-07-22 17:42:42 -0400
commitb1ddc6f1c69aaeeeb3156bbe535eb5c690d37fcc (patch)
treeb5418299f0b52ec5f201b6819440f9970c999316 /Makefile
parent76d87218b71c0716eff081fa189e40f8f738359e (diff)
add makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile68
1 files changed, 68 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e99883c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,68 @@
+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 ssh fish git mutt byobu weechat vim
+Windows: bash ssh git vim
+Other: bash git vim 
+
+clean:
+	@printf "$(RED)--- clean -----------------------------------------------\n$(RESET)"
+	stow -t "$$HOME" -D bash
+	stow -t "$$HOME" -D ssh
+	stow -t "$$HOME" -D fish
+	stow -t "$$HOME" -D git
+	stow -t "$$HOME" -D vim
+	stow -t "$$HOME" -D mutt
+	stow -t "$$HOME" -D byobu
+	stow -t "$$HOME" -D weechat
+
+bash:
+	@printf "$(YELLOW)--- bash -----------------------------------------------\n$(RESET)"
+	stow -t "$$HOME" bash
+
+ssh:
+	@printf "$(YELLOW)--- ssh ------------------------------------------------\n$(RESET)"
+	stow -t "$$HOME" ssh
+
+fish:
+	@printf "$(YELLOW)--- fish -----------------------------------------------\n$(RESET)"
+	stow -t "$$HOME" fish
+
+git:
+	@printf "$(YELLOW)--- git ------------------------------------------------\n$(RESET)"
+	stow -t "$$HOME" git
+
+vim:
+	@printf "$(YELLOW)--- vim ------------------------------------------------\n$(RESET)"
+	stow -t "$$HOME" vim
+	~/.spf13-vim/bootstrap.sh
+
+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
+
+.PHONY: bash fish git vim mutt byobu weechat clean install Windows Linux Other
+