Update Makefile to provide additional options
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
8f0b2fb93e
commit
6e152774dd
1 changed files with 40 additions and 12 deletions
52
Makefile
52
Makefile
|
@ -1,26 +1,54 @@
|
||||||
all:
|
usage:
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "usage:"
|
@echo "usage:"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "* make dotfiles -- to install dotfiles"
|
@echo "* make install -- to install dotfiles"
|
||||||
@echo "* make clean -- to clean up dotfiles"
|
@echo "* make reinstall -- to reinstall & prune obsolete symlinks"
|
||||||
@echo "* make update -- get latest version from github, install manually"
|
@echo "* make delete -- to delete dotfiles"
|
||||||
|
@echo "* make update -- get latest version from gitlab"
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
linux:
|
install:
|
||||||
mkdir -p ~/.config
|
mkdir -p ~/.config
|
||||||
|
|
||||||
stow gitconfig
|
stow git
|
||||||
stow gnupg
|
stow gnupg
|
||||||
stow imapfilter
|
stow imapfilter
|
||||||
stow mbsyncrc
|
stow mbsync
|
||||||
stow msmtprc
|
stow msmtp
|
||||||
stow mutt
|
stow mutt
|
||||||
stow notmuch-config
|
stow notmuch
|
||||||
stow nvim
|
stow nvim
|
||||||
stow tmux
|
stow tmux
|
||||||
|
|
||||||
update:
|
reinstall:
|
||||||
git pull --verbose
|
|
||||||
|
|
||||||
.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
|
||||||
|
|
Loading…
Reference in a new issue