vim-settings/Makefile

78 lines
1.6 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-language-servers
install-language-servers:
sh ./install-language-servers.sh
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