-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (44 loc) · 1.37 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
#!/usr/bin/make -f
.PHONY: install uninstall dist arch_package
version=0.1
all: install
install: zsh-git-prompt ~/.config/awesome ~/.zshrc ~/.Xresources ~/.screenrc ~/.bashrc ~/.vimrc ~/.vim/bundle ~/.bash_aliases ~/.xprofile ~/.xinitrc
zsh-git-prompt:
git clone https://github.com/olivierverdier/zsh-git-prompt.git
~/.vimrc:
ln -sf ~/dotfiles/.vimrc ~/.vimrc
~/.xinitrc:
ln -sf ~/dotfiles/.xinitrc ~/.xinitrc
~/.screenrc:
ln -sf ~/dotfiles/.screenrc ~/.screenrc
~/.xprofile:
ln -sf ~/dotfiles/.xprofile ~/.xprofile
~/.Xresources:
ln -sf ~/dotfiles/.Xresources ~/.Xresources
~/.zshrc:
ln -sf ~/dotfiles/.zshrc ~/.zshrc
~/.config/awesome:
ln -sf ~/dotfiles/.config/awesome ~/.config/awesome
~/.bash_aliases:
ln -sf ~/dotfiles/.bash_aliases ~/.bash_aliases
~/.vim/bundle:
mkdir -p ~/.vim/bundle
$$(git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim)
vim \+PluginInstall \+qall
~/.bashrc:
ln -sf ~/dotfiles/.bashrc ~/.bashrc
arch_package:
cd archlinux && makepkg --syncdeps -f
dist:
mkdir -p dotfiles-${version}
cp -r .vimrc .screenrc .Xresources .zshrc .config .bash* dotfiles-${version}
tar czf dotfiles-${version}.tar.gz dotfiles-${version}
rm -rf dotfiles-${version}
uninstall:
-unlink ~/.vimrc
-unlink ~/.screenrc
-unlink ~/.zshrc
-unlink ~/.Xresources
-unlink ~/.config/awesome
-rm -rf zsh-git-prompt
-rm -rf ~/.vim/bundle