-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
109 lines (83 loc) · 2.5 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
106
107
108
109
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.ONESHELL := true
.DELETE_ON_ERROR := true
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
ifeq ($(origin .RECIPEPREFIX), undefined)
>$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later (i.e. gmake not make))
endif
.RECIPEPREFIX = >
PACKAGES=bash vim screen git keyd gigalixir
.PHONY: $(PACKAGES)
ASDF=~/.asdf
VUNDLE=~/.vim/bundle
all: $(PACKAGES)
list:
>@echo $(PACKAGES)
check:
>@type brew >/dev/null 2>&1 || $(MAKE) homebrew
>@type stow >/dev/null 2>&1 || brew install stow
gigalixir: bash
> asdf install python 3.12.7
> asdf global python 3.12.7
> pip3 install gigalixir --user
homebrew-installer:
>/usr/bin/curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install -o homebrew-installer
homebrew: homebrew-installer
>/usr/bin/ruby homebrew-installer
git-prompt:
>brew install bash-git-prompt
nvm:
>if [ ! -d ~/.nvm ]; then mkdir ~/.nvm; fi
>curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
yarn:
>brew install yarn
bash: bash/.bashrc bash/.bash_profile bash/.git-completion.bash
>stow -t ~ bash
keyd: keyd/default.conf
>sudo add-apt-repository ppa:keyd-team/ppa
>sudo apt update
>sudo apt install keyd
>sudo stow -t /etc/keyd/ keyd
>sudo keyd reload
asdf: bash
ifeq (,$(wildcard $(ASDF)))
>git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.1
endif
asdf-clean:
>rm -rf $(ASDF)
vim: vim/.vimrc
>stow -t ~ vim
ifeq (,$(wildcard $(VUNDLE)))
>mkdir -p $(VUNDLE)
>git clone https://github.com/VundleVim/Vundle.vim.git $(VUNDLE)/Vundle.vim
endif
>vim +PluginInstall +qall
vim-clean:
>stow -D vim
>rm -rf ~/.vim
zsh: zsh/.zshrc
># Oh My Zsh for good default shell setup
>#sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
>curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
># Additional shell setup
>cp aliases.zsh ~/.oh-my-zsh/custom
># Required for rbenv to work properly
>cp rbenv.zsh ~/.oh-my-zsh/custom
>stow zsh
screen: screen/.screenrc screen/.screen/fast screen/.screen/slow
>stow -t ~ screen
hammerspoon: hammerspoon/.hammerspoon/init.lua
>stow -t ~ hammerspoon
git: git/.gitconfig git/.gitignore_global
>stow -t ~ git
git-hooks: git-hooks/.git/hooks/prepare-commit-msg git-hooks/.git/hooks/pre-push
>git config --global init.templatedir '~/dotfiles/git-hooks'
>cd ~/src/handshake
>git init
clean:
>for package in $(PACKAGES) ; do \
> stow -D $$package ; \
>done
>rm -rf ~/.vim