-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
34 lines (26 loc) · 808 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
# Makefile for setting up dotfiles and misc workstation settings
UNAME := $(shell uname)
XDG_CONFIG_HOME ?= $(HOME)/.config
.PHONY: clean vim shell
all: stow vim shell
clean: unstow
vim:
mkdir -p $(HOME)/.backups
mkdir -p $(HOME)/.vim/bundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Run this only when on MacOS
ifeq ($(UNAME), Darwin)
brew:
brew install shellcheck
endif
# TODO: use git submodules here
shell:
mkdir -p $(HOME)/.third_party
git clone https://github.com/olivierverdier/zsh-git-prompt.git ${HOME}/.third_party/zsh-git-prompt
git clone https://github.com/jonmosco/kube-ps1.git ${HOME}/.third_party/kube-ps1
# GNU Stow
.PHONY: stow unstow
stow:
stow --verbose --target=$$HOME --restow */
unstow:
stow --verbose --target=$$HOME --delete */