選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

69 行
1.1 KiB

  1. DOTDEE=update-dotdee
  2. STOW=xstow
  3. PWD=$(shell pwd)
  4. STOWOPTS=-target $(HOME) -d $(PWD)
  5. DOTGITCONFIG=~/.gitconfig
  6. DOTPROFILE=~/.profile
  7. .PHONY: mosh common emacs git ruby haskell perl tmux vim zsh list osx linux ws nix
  8. all: common
  9. common: $(DOTPROFILE)
  10. ws: emacs nix mosh git ruby haskell perl tmux vim zsh common
  11. $(DOTGITCONFIG):
  12. $(STOW) $(STOWOPTS) git
  13. touch $(DOTGITCONFIG)
  14. $(DOTDEE) $(DOTGITCONFIG)
  15. clean:
  16. $(STOW) $(STOWOPTS) -D mosh common emacs git ruby haskell perl tmux vim zsh osx
  17. -rm $(DOTGITCONFIG) $(DOTPROFILE)
  18. -rm -fr $(DOTCONFIG).d $(DOTPROFILE).d
  19. -find $(PWD) -type f -name ".checksum" -exec rm {} \;
  20. $(DOTPROFILE):
  21. $(STOW) $(STOWOPTS) common
  22. touch $(DOTPROFILE)
  23. $(DOTDEE) $(DOTPROFILE)
  24. git: $(DOTGITCONFIG)
  25. emacs:
  26. $(STOW) $(STOWOPTS) emacs # $@?
  27. osx:
  28. $(STOW) $(STOWOPTS) osx
  29. linux:
  30. $(STOW) $(STOWOPTS) linux
  31. x:
  32. $(STOW) $(STOWOPTS) x
  33. ruby:
  34. $(STOW) $(STOWOPTS) ruby
  35. mosh:
  36. $(STOW) $(STOWOPTS) mosh
  37. zsh:
  38. $(STOW) $(STOWOPTS) zsh
  39. tmux:
  40. $(STOW) $(STOWOPTS) tmux
  41. vim:
  42. $(STOW) $(STOWOPTS) vim
  43. haskell:
  44. $(STOW) $(STOWOPTS) haskell
  45. perl:
  46. $(STOW) $(STOWOPTS) perl
  47. nix:
  48. $(STOW) $(STOWOPTS) nix