-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (22 loc) · 916 Bytes
/
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
DEVTOOLS_DIR=$(HOME)/devtools
all: install_depends create_configs createenv
install_depends:
sudo add-apt-repository ppa:cassou/emacs # emacs-snapshot
sudo apt-get update
sudo apt-get install $(cat debpackages.list)
create_configs:
find . -iname 'tpl_*' -exec ./bin/apply_template $(PWD)/config {} \;
createenv: git_prompt dotsconfs
devtools:
mkdir $(DEVTOOLS_DIR); true
git_prompt: devtools
rm -rf $(DEVTOOLS_DIR)/git-prompt && git clone git://github.com/lvv/git-prompt.git $(DEVTOOLS_DIR)/git-prompt
echo '[[ $$- == *i* ]] && . $(DEVTOOLS_DIR)/git-prompt/git-prompt.sh' >> bash.conf/.common_config
kerl: devtools
curl https://raw.github.com/spawngrid/kerl/master/kerl -o $(HOME)/bin/kerl
chmod a+x $(HOME)/bin/kerl
kerl update releases
# Simple dots configs
dotsconfs: create_configs $(addsuffix -dots, git.conf tmux.conf bash.conf kerl.conf)
%-dots:
/bin/bash -c "cp $*/.[^.]* $(HOME)/"