makefile: Fix spacing
This commit is contained in:
parent
69b0e203a8
commit
39b5947e92
1 changed files with 49 additions and 43 deletions
40
makefile
40
makefile
|
@ -35,28 +35,31 @@ build-default: link-dotfiles \
|
|||
install-vim-plugin \
|
||||
install-git \
|
||||
install-tmux \
|
||||
install-bash-config \
|
||||
install-bash-profile \
|
||||
install-irssi
|
||||
install-bash-config
|
||||
|
||||
build-simple: ## Create minimal environment, for remote or single-use
|
||||
build-simple: install-vim-config \
|
||||
install-bash-profile
|
||||
install-bash-remote
|
||||
|
||||
clean-all: ## Remove all dotfiles linked via this makefile
|
||||
|
||||
#===============================================================================
|
||||
# Dotfiles
|
||||
#===============================================================================
|
||||
install-vim-config: ## Create vimrc file in Home directory
|
||||
install-vim-config: ## Create vimrc file and vim directory in Home directory
|
||||
@if [ -L "$(HOME)"/.vimrc ] ; then \
|
||||
echo "File vimrc already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking vimrc to ~/.vimrc" ; \
|
||||
ln -s -- "$(CURDIR)"/vim/vimrc "$(HOME)"/.vimrc ; \
|
||||
fi
|
||||
@if [ ! -d "$(HOME)"/.vim ] ; then \
|
||||
mkdir "$(HOME)"/.vim \
|
||||
fi
|
||||
@cp -uir -- "$(CURDIR)"/vim/vim/ "$(HOME)"/.vim/
|
||||
|
||||
install-vim-plugin: ## Create vimrc-plugins (Plugin file) in Home directory
|
||||
install-vim-plugin: install-vim-config
|
||||
@if [ -L "$(HOME)"/.vimrc-plugins ] ; then \
|
||||
echo "File vimrc-plugins already linked; skipping." ; \
|
||||
else \
|
||||
|
@ -64,16 +67,8 @@ install-vim-plugin: ## Create vimrc-plugins (Plugin file) in Home directory
|
|||
ln -s -- "$(CURDIR)"/vim/vimrc-plugins "$(HOME)"/.vimrc-plugins ; \
|
||||
fi
|
||||
|
||||
install-vim-dir: ## Create vim directory in Home directory
|
||||
@if [ -L "$(HOME)"/.vim ] ; then \
|
||||
echo "Vim directory already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking vim/ to ~/.vim" ; \
|
||||
ln -s -- "$(CURDIR)"/vim/vim/ "$(HOME)"/.vim ; \
|
||||
fi
|
||||
|
||||
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
|
||||
@if [ -L "$(HOME)"/.gitignore ] ; then \
|
||||
echo "File gitignore already linked; skipping." ; \
|
||||
else \
|
||||
|
@ -82,6 +77,7 @@ install-git: ## Create git config and ignore files in Home directory
|
|||
fi
|
||||
|
||||
install-tmux: ## Create tmux config file in Home directory
|
||||
install-tmux: link-dotfiles
|
||||
@if [ -L "$(HOME)"/.tmux.conf ] ; then \
|
||||
echo "File tmux.conf already linked; skipping." ; \
|
||||
else \
|
||||
|
@ -90,7 +86,17 @@ install-tmux: ## Create tmux config file in Home directory
|
|||
fi
|
||||
|
||||
install-bash-config: ## Create bash config file in Home directory
|
||||
@if [ -L "$(HOME)"/.bashrc ] ; then \
|
||||
echo "File .bashrc already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking bashrc to ~/.bashrc" ; \
|
||||
ln -s -- "$(CURDIR)"/bash/bashrc "$(HOME)"/.bashrc ; \
|
||||
fi
|
||||
|
||||
install-bash-profile: ## Cretae bash profile file in Home directory
|
||||
|
||||
install-irssi: ## Create irssi directory and file in Home directory
|
||||
install-bash-remote: ## Create remote bash config file in Home directory
|
||||
@if [ -L "$(HOME)"/.bashrc ] ; then \
|
||||
echo "File .bashrc already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking bashrc-remote to ~/.bashrc" ; \
|
||||
ln -s -- "$(CURDIR)"/bash/bashrc-remote "$(HOME)"/.bashrc ; \
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue