diff options
author | Matt Singleton <matt@xcolour.net> | 2024-04-11 16:21:15 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2024-04-11 16:21:15 -0500 |
commit | f2dfde23f8157da1532a2b2e236af529fed47713 (patch) | |
tree | d5eabb0eb33d100304ee16596b2a43dfb4a68d1c /Makefile | |
parent | 7f67d28e18760154778f20da43772838c36734ed (diff) |
replace janky deploy script with stow and make
re-orgs all the console oriented dotfiles to be stowable
makefile to deploy everything
move from vimplug to native vim packages
cleanup script for blowing away old symlinks
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bbdaf73 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +REPO_CHANGES := $(shell git status --porcelain | wc -l) + +.PHONY: .initialize +.initialize: +ifneq ($(REPO_CHANGES),0) + $(error cannot run with a dirty repo. stash or commit changes.) +endif + git submodule update --init --recursive + +.PHONY: .local +.local: + mkdir -p stow/duplicity/.config/duplicity + cp --update=none local/duplicity-config stow/duplicity/.config/duplicity/config + cp --update=none local/duplicity-excludes stow/duplicity/.config/duplicity/excludes + cp --update=none local/gitconfig-local stow/git/.config/git/config-local + cp --update=none local/local.zsh stow/zsh/.config/zsh/00-local.zsh + +.PHONY: console +console: .initialize .local + stow --adopt --dir=stow --target=${HOME} console-utils + stow --adopt --dir=stow --target=${HOME} dircolors + stow --adopt --dir=stow --target=${HOME} git + stow --adopt --dir=stow --target=${HOME} vim + stow --adopt --dir=stow --target=${HOME} zsh + stow --adopt --dir=stow --target=${HOME} duplicity + +restore: + git restore . |