diff --git a/Makefile b/Makefile index 05c6ae9..7ce018c 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,54 @@ -all: +usage: @echo "" @echo "usage:" @echo "" - @echo "* make dotfiles -- to install dotfiles" - @echo "* make clean -- to clean up dotfiles" - @echo "* make update -- get latest version from github, install manually" + @echo "* make install -- to install dotfiles" + @echo "* make reinstall -- to reinstall & prune obsolete symlinks" + @echo "* make delete -- to delete dotfiles" + @echo "* make update -- get latest version from gitlab" @echo "" -linux: +install: mkdir -p ~/.config - stow gitconfig + stow git stow gnupg stow imapfilter - stow mbsyncrc - stow msmtprc + stow mbsync + stow msmtp stow mutt - stow notmuch-config + stow notmuch stow nvim stow tmux -update: - git pull --verbose +reinstall: -.PHONY : all dotfiles clean + stow -R git + stow -R gnupg + stow -R imapfilter + stow -R mbsync + stow -R msmtp + stow -R mutt + stow -R notmuch + stow -R nvim + stow -R tmux + +delete: + + stow -D git + stow -D gnupg + stow -D imapfilter + stow -D mbsync + stow -D msmtp + stow -D mutt + stow -D notmuch + stow -D nvim + stow -D tmux + +update: + + git pull --verbose + git submodule update --init --recursive + +all: + usage