Makefile: Add functionality for submodule plugins
This commit is contained in:
parent
ae603b42f1
commit
09817ac8d4
1 changed files with 10 additions and 14 deletions
24
makefile
24
makefile
|
@ -7,13 +7,11 @@
|
||||||
build-simple \
|
build-simple \
|
||||||
clean-all \
|
clean-all \
|
||||||
install-vim-config \
|
install-vim-config \
|
||||||
install-vim-dir \
|
install-vim-plugins \
|
||||||
install-vim-plugin \
|
|
||||||
install-git \
|
install-git \
|
||||||
install-tmux \
|
install-tmux \
|
||||||
install-bash-config \
|
install-bash-config \
|
||||||
install-bash-profile \
|
install-bash-profile \
|
||||||
install-irssi
|
|
||||||
|
|
||||||
.DEFAULT-GOAL := help
|
.DEFAULT-GOAL := help
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
@ -31,8 +29,7 @@ link-dotfiles: ## Create dotfiles link in Home directory
|
||||||
build-default: ## Create default environment, using all dotfiles
|
build-default: ## Create default environment, using all dotfiles
|
||||||
build-default: link-dotfiles \
|
build-default: link-dotfiles \
|
||||||
install-vim-config \
|
install-vim-config \
|
||||||
install-vim-dir \
|
install-vim-plugins \
|
||||||
install-vim-plugin \
|
|
||||||
install-git \
|
install-git \
|
||||||
install-tmux \
|
install-tmux \
|
||||||
install-bash-config
|
install-bash-config
|
||||||
|
@ -56,16 +53,15 @@ install-vim-config: ## Create vimrc file and vim directory in Home directory
|
||||||
@if [ ! -d "$(HOME)"/.vim ] ; then \
|
@if [ ! -d "$(HOME)"/.vim ] ; then \
|
||||||
mkdir "$(HOME)"/.vim ; \
|
mkdir "$(HOME)"/.vim ; \
|
||||||
fi
|
fi
|
||||||
@cp -uir -- "$(CURDIR)"/vim/vim/ "$(HOME)"/.vim/
|
@echo "Copying Vim directory into ~/.vim"
|
||||||
|
@cp -uir -- "$(CURDIR)"/vim/vim/* "$(HOME)"/.vim/
|
||||||
|
|
||||||
install-vim-plugin: ## Create vimrc-plugins (Plugin file) in Home directory
|
install-vim-plugins: ## Install configure Vim plugin submodules
|
||||||
install-vim-plugin: install-vim-config
|
install-vim-plugins: install-vim-config
|
||||||
@if [ -L "$(HOME)"/.vimrc-plugins ] ; then \
|
@echo "Updating all submodules"
|
||||||
echo "File vimrc-plugins already linked; skipping." ; \
|
@git submodule foreach git pull origin master
|
||||||
else \
|
@echo "Updating Vim helptags"
|
||||||
echo "Linking vimrc-plugins to ~/.vimrc-plugins" ; \
|
@vim -u NONE -c "helptags ALL" -c q
|
||||||
ln -s -- "$(CURDIR)"/vim/vimrc-plugins "$(HOME)"/.vimrc-plugins ; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
install-git: ## Create git config and ignore files in Home directory
|
install-git: ## Create git config and ignore files in Home directory
|
||||||
@cp -i -- "$(CURDIR)"/git/gitconfig "$(HOME)"/.gitconfig
|
@cp -i -- "$(CURDIR)"/git/gitconfig "$(HOME)"/.gitconfig
|
||||||
|
|
Loading…
Reference in a new issue