vim-settings/Makefile

82 lines
1.8 KiB
Makefile
Raw Permalink Normal View History

.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
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
.PHONY: install-coding-helpers
install-coding-helpers:
sh ./install-coding-helpers.sh
.PHONY: install-language-servers
install-language-servers: install-coding-helpers
@echo "Using obsolete make target. Change to install-coding-helpers"
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
# Build Docker images
.PHONY: docker-build
docker-build:
docker build \
2022-01-06 22:50:04 +00:00
-f ./docker/Dockerfile \
--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 \
--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 \
--push \
2021-06-14 01:31:14 +00:00
--platform linux/arm,linux/arm64,linux/amd64 \
--tag vividboarder/my-neovim .
.PHONY: docker-clean
docker-clean:
docker volume rm nvim-$(USER)-home