forked from balsama/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
105 lines (75 loc) · 2.22 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
HOME_BIN_DIR = $(HOME)/.bin
PHP_VERSION=56
install: cli-package apps-package php-package node-package haskell-package
cli-package: bash-config ssh git vim tmux ctags
php-package: php php-intl php-xdebug php-composer
node-package: node
haskell-package: ghc
apps-package: iterm2 google-chrome skype hipchat evernote appcleaner dropbox google-drive
home-bin-dir:
test -s $(HOME_BIN_DIR) || mkdir $(HOME_BIN_DIR)
brew:
test -s /usr/local/bin/brew || ruby -e "$$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew-cask: brew
brew install caskroom/cask/brew-cask
bash-config:
rm $(HOME)/.bashrc
ln -s $(CURDIR)/bash/bashrc $(HOME)/.bashrc
rm $(HOME)/.bash_profile
ln -s $(CURDIR)/bash/bash_profile $(HOME)/.bash_profile
ctags: brew
brew install ctags
rm $(HOME)/.ctags
ln -s $(CURDIR)/ctags/ctags $(HOME)/.ctags
ack: brew
brew install ack
git: brew
brew install git
rm $(HOME)/.gitconfig
ln -s $(CURDIR)/git/gitconfig $(HOME)/.gitconfig
rm $(HOME)/.gitignore
ln -s $(CURDIR)/git/gitignore $(HOME)/.gitignore
vim: brew
brew install vim
rm $(HOME)/.vim
ln -s $(CURDIR)/vim $(HOME)/.vim
rm $(HOME)/.vimrc
ln -s $(CURDIR)/vim/vimrc $(HOME)/.vimrc
tmux: brew
brew install tmux
rm $(HOME)/.tmux.conf
ln -s $(CURDIR)/tmux/conf $(HOME)/.tmux.conf
ssh: ssh-config-dir
rm $(HOME)/.ssh/config
ln -s $(CURDIR)/ssh/config $(HOME)/.ssh/config
echo "Don't forget to add SSH keys"
ssh-config-dir:
test -s $(HOME)/.ssh || mkdir $(HOME)/.ssh
php: brew
brew install php$(PHP_VERSION)
php-xdebug: php
brew install php$(PHP_VERSION)-xdebug
ghc: brew-cask
brew cask install ghc
rm $(HOME)/.ghci
ln -s $(CURDIR)/ghci/ghci $(HOME)/.ghci
php-composer: home-bin-dir
test -s $(HOME_BIN_DIR)/composer || (curl getcomposer.org/composer.phar -o $(HOME_BIN_DIR)/composer && chmod a+x $(HOME_BIN_DIR)/composer)
node: brew
node install brew
google-chrome: brew-cask
brew cask install google-chrome
google-drive: brew-cask
brew cask install google-drive
skype: brew-cask
brew cask install skype
hipchat: brew-cask
brew cask install hipchat
appcleaner: brew-cask
brew cask install appcleaner
evernote: brew-cask
brew cask install evernote
dropbox: brew-cask
brew cask install dropbox
iterm2: brew-cask
brew cask install iterm2