From 6e152774dd2198a4a0d1b457189ee76a93c41448 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 31 Dec 2019 14:58:42 +0530 Subject: [PATCH] Update Makefile to provide additional options Signed-off-by: Sanchayan Maity --- Makefile | 52 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 12 deletions(-) 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