-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (43 loc) · 1.27 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
SHELL := /bin/bash
DOTFILES=gitconfig \
gitignore \
profile \
screenrc \
vimrc \
zshrc
PACKAGES=vim-enhanced \
tmux \
zsh \
git \
GCC_PACKAGES=gcc
all: epel packages gcc go git ohmyzsh dotfiles
default: all
dotfiles:
@$(foreach dotfile, $(DOTFILES), \
[ -f ~/.$(dotfile) ] || ln -s $(PWD)/$(dotfile) ~/.$(dotfile);)
ln -s $(PWD)/i3 ~/.config/i3 || true
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugUpdate +qa
(which dconf 2>&1 && dconf load /com/gexperts/Tilix/ < tilix.dconf) > /dev/null || true
packages:
sudo yum install -y $(PACKAGES)
epel:
./scripts/epel.sh
gcc:
sudo yum install -y $(GCC_PACKAGES)
git:
go get -u github.com/stbenjam/git-clone-fork
go:
./scripts/golang.sh
ohmyzsh:
[ -d $(HOME)/.oh-my-zsh ] || curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
sshkey:
[ -d $(HOME)/.ssh ] || mkdir -p $(HOME)/.ssh
chmod 700 $(HOME)/.ssh
curl -sSL https://github.com/stbenjam.keys > $(HOME)/.ssh/authorized_keys
chmod 600 $(HOME)/.ssh/authorized_keys
clean:
@$(foreach dotfile, $(DOTFILES), \
[ -f ~/.$(dotfile) ] && rm -f ~/.$(dotfile);)
rm -rf ~/.vim
.PHONY: all dotfiles packages epel gcc go