forked from williamboman/mason.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 1.26 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
INSTALL_ROOT_DIR:=$(shell pwd)/tests/fixtures/mason
NVIM_HEADLESS:=nvim --headless --noplugin -u tests/minimal_init.vim
dependencies:
git clone --depth 1 https://github.com/williamboman/mason-lspconfig.nvim dependencies/pack/vendor/start/mason-lspconfig.nvim
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim dependencies/pack/vendor/start/plenary.nvim
git clone --depth 1 https://github.com/nvim-neotest/neotest dependencies/pack/vendor/start/neotest
.PHONY: clean_dependencies
clean_dependencies:
rm -rf dependencies
.PHONY: clean_fixtures
clean_fixtures:
rm -rf "${INSTALL_ROOT_DIR}"
.PHONY: clean
clean: clean_fixtures clean_dependencies
.PHONY: test
test: clean_fixtures dependencies
INSTALL_ROOT_DIR=${INSTALL_ROOT_DIR} $(NVIM_HEADLESS) -c "call RunTests()"
.PHONY: schemas-generate
schemas-generate: dependencies
./scripts/nvim.sh scripts/lua/mason-scripts/mason-schemas/generate.lua
.PHONY: package-markdown-index-generate
package-markdown-index-generate: dependencies
./scripts/nvim.sh scripts/lua/mason-scripts/mason/generate_package_index.lua
.PHONY: autogenerate
autogenerate: schemas-generate package-markdown-index-generate
.PHONY: generate
generate: dependencies
./scripts/nvim.sh scripts/lua/mason-scripts/mason/generate.lua
# vim:noexpandtab