mirror of
https://github.com/amix/vimrc
synced 2025-07-09 10:45:00 +08:00
Add support with Go language.
This commit is contained in:
31
sources_non_forked/vim-go/Makefile
Normal file
31
sources_non_forked/vim-go/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
VIMS ?= vim-8.0 vim-8.2 nvim
|
||||
TEST_FLAGS ?=
|
||||
|
||||
all: install lint test
|
||||
|
||||
install:
|
||||
@echo "==> Installing Vims: $(VIMS)"
|
||||
@for vim in $(VIMS); do \
|
||||
./scripts/install-vim $$vim; \
|
||||
./scripts/install-tools $$vim; \
|
||||
done
|
||||
|
||||
test:
|
||||
@echo "==> Running tests for $(VIMS)"
|
||||
@for vim in $(VIMS); do \
|
||||
./scripts/test $(TEST_FLAGS) $$vim; \
|
||||
done
|
||||
|
||||
lint:
|
||||
@echo "==> Running linting tools"
|
||||
@./scripts/lint vim-8.2
|
||||
|
||||
docker:
|
||||
@echo "==> Building/starting Docker container"
|
||||
@./scripts/docker-test
|
||||
|
||||
clean:
|
||||
@echo "==> Cleaning /tmp/vim-go-test"
|
||||
@rm -rf /tmp/vim-go-test
|
||||
|
||||
.PHONY: all test install clean lint docker
|
Reference in New Issue
Block a user