Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. YELLOW = $$(tput setaf 226)
  2. GREEN = $$(tput setaf 46)
  3. RED = $$(tput setaf 196)
  4. RESET = $$(tput sgr0)
  5. ifeq ($(OS),Windows_NT)
  6. UNAME = Windows
  7. else
  8. UNAME_S := $(shell uname -s)
  9. ifeq ($(UNAME_S),Linux)
  10. UNAME = Linux
  11. endif
  12. UNAME ?= Other
  13. endif
  14. install:
  15. @make $(UNAME)
  16. Linux: bash fish git mutt byobu weechat vim nvim gnupg bin
  17. Windows: bash git vim
  18. Other: bash git vim
  19. clean:
  20. @printf "$(RED)--- clean -----------------------------------------------\n$(RESET)"
  21. stow -t "$$HOME" -D bash
  22. stow -t "$$HOME" -D fish
  23. stow -t "$$HOME" -D git
  24. stow -t "$$HOME" -D vim
  25. stow -t "$$HOME" -D nvim
  26. stow -t "$$HOME" -D mutt
  27. stow -t "$$HOME" -D byobu
  28. stow -t "$$HOME" -D weechat
  29. stow -t "$$HOME" -D gnupg
  30. stow -t "$$HOME" -D bin
  31. bash:
  32. @printf "$(YELLOW)--- bash -----------------------------------------------\n$(RESET)"
  33. stow -t "$$HOME" bash
  34. fish:
  35. @printf "$(YELLOW)--- fish -----------------------------------------------\n$(RESET)"
  36. stow -t "$$HOME" fish
  37. fish -c fisher
  38. git:
  39. @printf "$(YELLOW)--- git ------------------------------------------------\n$(RESET)"
  40. stow -t "$$HOME" git
  41. vim:
  42. @printf "$(YELLOW)--- vim ------------------------------------------------\n$(RESET)"
  43. stow -t "$$HOME" vim
  44. nvim:
  45. @printf "$(YELLOW)--- nvim -----------------------------------------------\n$(RESET)"
  46. stow -t "$$HOME" nvim
  47. mutt:
  48. @printf "$(YELLOW)--- mutt -----------------------------------------------\n$(RESET)"
  49. stow -t "$$HOME" mutt
  50. byobu:
  51. @printf "$(YELLOW)--- byobu ----------------------------------------------\n$(RESET)"
  52. stow -t "$$HOME" byobu
  53. weechat:
  54. @printf "$(YELLOW)--- weechat --------------------------------------------\n$(RESET)"
  55. stow -t "$$HOME" weechat
  56. gnupg:
  57. @printf "$(YELLOW)--- gnupg ----------------------------------------------\n$(RESET)"
  58. mkdir -p "$$HOME/.gnupg"
  59. chmod 700 "$$HOME/.gnupg"
  60. stow -t "$$HOME" gnupg
  61. bin:
  62. @printf "$(YELLOW)--- bin ------------------------------------------------\n$(RESET)"
  63. stow -t "$$HOME" bin
  64. .PHONY: bash fish git vim nvim mutt byobu weechat gnupg bin clean install Windows Linux Other