2019-10-29 21:55:44 +00:00
|
|
|
.PHONY: all test
|
2019-10-24 19:35:49 +00:00
|
|
|
PRE_COMMIT_ENV ?= .pre_commit_env
|
|
|
|
PRE_COMMIT_ENV_BIN ?= $(PRE_COMMIT_ENV)/bin
|
|
|
|
|
2017-11-14 03:28:07 +00:00
|
|
|
.PHONY: default
|
2019-10-24 21:13:20 +00:00
|
|
|
default: check
|
2015-03-26 17:36:36 +00:00
|
|
|
|
2017-11-14 03:28:07 +00:00
|
|
|
.PHONY: install
|
2015-03-26 17:36:36 +00:00
|
|
|
install:
|
2015-03-27 00:45:03 +00:00
|
|
|
sh ./vim-sync-append.sh
|
|
|
|
|
2017-11-14 03:28:07 +00:00
|
|
|
.PHONY: update
|
|
|
|
update:
|
|
|
|
sh ./update-plugins.sh
|
|
|
|
|
2023-12-13 17:29:51 +00:00
|
|
|
.PHONY: install-coding-helpers
|
|
|
|
install-coding-helpers:
|
|
|
|
sh ./install-coding-helpers.sh
|
|
|
|
|
2019-10-29 21:55:44 +00:00
|
|
|
.PHONY: install-language-servers
|
2023-12-13 17:29:51 +00:00
|
|
|
install-language-servers: install-coding-helpers
|
|
|
|
@echo "Using obsolete make target. Change to install-coding-helpers"
|
2019-10-29 21:55:44 +00:00
|
|
|
|
2017-11-14 03:28:07 +00:00
|
|
|
.PHONY: uninstall
|
2015-03-27 00:45:03 +00:00
|
|
|
uninstall:
|
|
|
|
rm ~/.vimrc
|
|
|
|
rm -fr ~/.vim
|
2015-11-18 05:42:01 +00:00
|
|
|
rm -fr ~/.config/nvim
|
2015-03-26 17:36:36 +00:00
|
|
|
|
2017-11-14 03:28:07 +00:00
|
|
|
.PHONY: clean
|
2015-03-26 17:36:36 +00:00
|
|
|
clean:
|
2022-03-01 00:38:45 +00:00
|
|
|
# Clean vim-plug
|
|
|
|
rm -fr ./vim/plugged ./vim/autoload/plug.vim
|
|
|
|
# Clean LspInstall
|
|
|
|
rm -fr ~/.local/share/nvim/lsp_servers
|
|
|
|
# Clean Packer
|
|
|
|
rm -fr ~/.local/share/nvim/site/pack/packer
|
2019-10-24 19:35:49 +00:00
|
|
|
|
|
|
|
# Installs pre-commit hooks
|
|
|
|
$(PRE_COMMIT_ENV):
|
|
|
|
virtualenv $(PRE_COMMIT_ENV)
|
|
|
|
|
|
|
|
$(PRE_COMMIT_ENV_BIN)/pre-commit: $(PRE_COMMIT_ENV)
|
|
|
|
$(PRE_COMMIT_ENV_BIN)/pip install pre-commit
|
|
|
|
|
|
|
|
.PHONY: install-hooks
|
|
|
|
install-hooks: $(PRE_COMMIT_ENV_BIN)/pre-commit
|
2019-10-24 21:16:01 +00:00
|
|
|
$(PRE_COMMIT_ENV_BIN)/pre-commit install --install-hooks
|
2019-10-24 19:35:49 +00:00
|
|
|
|
|
|
|
# Checks files for encryption
|
|
|
|
.PHONY: check
|
|
|
|
check: $(PRE_COMMIT_ENV_BIN)/pre-commit
|
|
|
|
$(PRE_COMMIT_ENV_BIN)/pre-commit run --all-files
|
2021-06-09 17:23:48 +00:00
|
|
|
|
|
|
|
# Build Docker images
|
|
|
|
.PHONY: docker-build
|
|
|
|
docker-build:
|
|
|
|
docker build \
|
2022-01-06 22:50:04 +00:00
|
|
|
-f ./docker/Dockerfile \
|
2021-06-09 17:23:48 +00:00
|
|
|
--tag vividboarder/my-neovim .
|
|
|
|
|
|
|
|
# Build Docker images
|
|
|
|
.PHONY: docker-build-all
|
|
|
|
docker-build-all:
|
|
|
|
docker buildx build \
|
2022-01-06 22:50:04 +00:00
|
|
|
-f ./docker/Dockerfile \
|
2021-06-14 01:31:14 +00:00
|
|
|
--platform linux/arm,linux/arm64,linux/amd64 \
|
2021-06-09 17:23:48 +00:00
|
|
|
--tag vividboarder/my-neovim .
|
|
|
|
|
|
|
|
# Build Docker images
|
|
|
|
.PHONY: docker-build-push
|
|
|
|
docker-build-push:
|
|
|
|
docker buildx build \
|
2022-01-06 22:50:04 +00:00
|
|
|
-f ./docker/Dockerfile \
|
2021-06-09 17:23:48 +00:00
|
|
|
--push \
|
2021-06-14 01:31:14 +00:00
|
|
|
--platform linux/arm,linux/arm64,linux/amd64 \
|
2021-06-09 17:23:48 +00:00
|
|
|
--tag vividboarder/my-neovim .
|
|
|
|
|
|
|
|
.PHONY: docker-clean
|
|
|
|
docker-clean:
|
|
|
|
docker volume rm nvim-$(USER)-home
|