makefile: Fix spacing
This commit is contained in:
parent
69b0e203a8
commit
39b5947e92
1 changed files with 49 additions and 43 deletions
92
makefile
92
makefile
|
@ -21,7 +21,7 @@
|
|||
#===============================================================================
|
||||
help: ## Display this menu
|
||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
|
||||
awk 'BEGIN {FS = ":.*?## "}; {printf "%-25s %s\n", $$1, $$2}'
|
||||
awk 'BEGIN {FS = ":.*?## "}; {printf "%-25s %s\n", $$1, $$2}'
|
||||
|
||||
link-dotfiles: ## Create dotfiles link in Home directory
|
||||
ln -s -- "$(CURDIR)" "$(HOME)"/.dotfiles
|
||||
|
@ -30,67 +30,73 @@ link-dotfiles: ## Create dotfiles link in Home directory
|
|||
#===============================================================================
|
||||
build-default: ## Create default environment, using all dotfiles
|
||||
build-default: link-dotfiles \
|
||||
install-vim-config \
|
||||
install-vim-dir \
|
||||
install-vim-plugin \
|
||||
install-git \
|
||||
install-tmux \
|
||||
install-bash-config \
|
||||
install-bash-profile \
|
||||
install-irssi
|
||||
install-vim-config \
|
||||
install-vim-dir \
|
||||
install-vim-plugin \
|
||||
install-git \
|
||||
install-tmux \
|
||||
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
|
||||
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 \
|
||||
echo "Linking vimrc-plugins to ~/.vimrc-plugins" ; \
|
||||
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
|
||||
echo "File vimrc-plugins already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking vimrc-plugins to ~/.vimrc-plugins" ; \
|
||||
ln -s -- "$(CURDIR)"/vim/vimrc-plugins "$(HOME)"/.vimrc-plugins ; \
|
||||
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 \
|
||||
echo "Linking gitignore to ~/.gitignore" ; \
|
||||
ln -s -- "$(CURDIR)"/git/gitignore "$(HOME)"/.gitignore ; \
|
||||
fi
|
||||
echo "File gitignore already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking gitignore to ~/.gitignore" ; \
|
||||
ln -s -- "$(CURDIR)"/git/gitignore "$(HOME)"/.gitignore ; \
|
||||
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 \
|
||||
echo "Linking tmux.conf to ~/.tmux.conf" ; \
|
||||
ln -s -- "$(CURDIR)"/tmux/tmux.conf "$(HOME)"/.tmux.conf ; \
|
||||
fi
|
||||
echo "File tmux.conf already linked; skipping." ; \
|
||||
else \
|
||||
echo "Linking tmux.conf to ~/.tmux.conf" ; \
|
||||
ln -s -- "$(CURDIR)"/tmux/tmux.conf "$(HOME)"/.tmux.conf ; \
|
||||
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