-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
85 lines (62 loc) · 3.09 KB
/
Makefile
File metadata and controls
85 lines (62 loc) · 3.09 KB
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
# Keep it simple for now...
all:
# XDG_CONFIG_HOME
[ -d ~/.config ] && stow -v -t ~/.config config
# XDG_DATA_HOME
[ -d ~/.local/share ] && stow -v -t ~/.local/share local-share
# scripts
[ -d ~/.local/scripts ] || ln -s $(PWD)/scripts ~/.local
# zsh
[ -f ~/.zshenv ] || ln -s $(PWD)/shell/zshenv.sh ~/.zshenv
[ -f ~/.zprofile ] || ln -s $(PWD)/shell/zprofile.sh ~/.zprofile
[ -f ~/.zshrc ] || ln -s $(PWD)/shell/zshrc.sh ~/.zshrc
[ -f ~/.aliases.sh ] || ln -s $(PWD)/shell/aliases.sh ~/.aliases.sh
[ -f ~/.functions.sh ] || ln -s $(PWD)/shell/functions.sh ~/.functions.sh
[ -f ~/.zpreztorc ] || ln -s $(PWD)/shell/zpreztorc.sh ~/.zpreztorc
[ -f ~/.zsh.local ] || cp $(PWD)/shell/local.sh ~/.zsh.local
# bash
[ -f ~/.bash_profile ] || ln -s $(PWD)/shell/bash_profile.sh ~/.bash_profile
[ -f ~/.bashrc ] || ln -s $(PWD)/shell/bashrc.sh ~/.bashrc
[ -f ~/.bash.prompt ] || ln -s $(PWD)/shell/bash-prompt.sh ~/.bash.prompt
[ -f ~/.bash.local ] || cp $(PWD)/shell/local.sh ~/.bash.local
# emacs -- still required for MacOS
[ -d ~/.emacs.d ] || ln -s $(PWD)/config/emacs ~/.emacs.d
# vim
[ -f ~/.vimrc ] || ln -s $(PWD)/vim/vimrc ~/.vimrc
[ -d ~/.vim ] || ln -s $(PWD)/vim ~/.vim
# git
[ -f ~/.gitconfig ] || ln -s $(PWD)/git/gitconfig ~/.gitconfig
[ -f ~/.gitignore_global ] || ln -s $(PWD)/git/gitignore ~/.gitignore_global
# tmux
[ -f ~/.tmux.conf ] || ln -s $(PWD)/tmux/tmux.conf ~/.tmux.conf
# Xmodmap key rebindings for X11
[ -f ~/.Xmodmap ] || ln -s $(PWD)/linux/Xmodmap ~/.Xmodmap
# elixir
[ -f ~/.iex.exs ] || ln -s $(PWD)/elixir/iex.exs ~/.iex.exs
clean:
# -L tests symbolic links
[ -d ~/.config ] && stow -v -D -t ~/.config config
[ -d ~/.local/share ] && stow -v -D -t ~/.local/share local-share
[ -L ~/.local/scripts ] && unlink ~/.local/scripts
# [ -d ~/.local/bin ] && stow -v -D -t ~/.local/bin scripts
[ -L ~/.zprofile ] && unlink ~/.zprofile
[ -L ~/.zshrc ] && unlink ~/.zshrc
[ -L ~/.zshenv ] && unlink ~/.zshenv
[ -L ~/.aliases.sh ] && unlink ~/.aliases.sh
[ -L ~/.functions.sh ] && unlink ~/.functions.sh
[ -L ~/.zprezto ] && unlink ~/.zprezto
[ -L ~/.zpreztorc ] && unlink ~/.zpreztorc
[ -f ~/.zsh.local ] && echo "leaving ~/.zsh.local in place"
[ -L ~/.bash_profile ] && unlink ~/.bash_profile
[ -L ~/.bashrc ] && unlink ~/.bashrc
[ -L ~/.bash.prompt ] && unlink ~/.bash.prompt
[ -f ~/.bash.local ] && echo "leaving ~/.bash.local in place"
[ -L ~/.emacs.d ] && unlink ~/.emacs.d
[ -L ~/.vimrc ] && unlink ~/.vimrc
[ -L ~/.vim ] && unlink ~/.vim
[ -L ~/.gitconfig ] && unlink ~/.gitconfig
[ -L ~/.gitignore_global ] && unlink ~/.gitignore_global
[ -L ~/.tmux.conf ] && unlink ~/.tmux.conf
[ -L ~/.Xmodmap ] && unlink ~/.Xmodmap
[ -L ~/.iex.exs ] && unlink ~/.iex.exs
.PHONY: all