-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·53 lines (37 loc) · 1.25 KB
/
Copy pathMakefile
File metadata and controls
executable file
·53 lines (37 loc) · 1.25 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY: clean test test-fail-fast test-e2e
all: hooks test
hooks:
pre-commit install
test: install
bash scripts/test
test-fail-fast: install
bash scripts/test --fail-fast
test-e2e: install
@tests/e2e/run-all.sh
install: deps/nvim-treesitter deps/nvim-treesitter/parser/java.so deps/neotest deps/nvim-nio deps/plenary.nvim
deps/plenary.nvim:
mkdir -p deps
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim.git $@
deps/nvim-treesitter:
mkdir -p deps
git clone --branch master --depth 1 https://github.com/nvim-treesitter/nvim-treesitter.git $@
deps/neotest:
mkdir -p deps
git clone https://github.com/nvim-neotest/neotest $@
git -C $@ checkout 7bef09d1170f8fb33c41607ca54f963cbdbf708d
deps/nvim-nio:
mkdir -p deps
git clone --depth 1 https://github.com/nvim-neotest/nvim-nio $@
deps/nvim-treesitter/parser/java.so: deps/nvim-treesitter
@if [ ! -d deps/tree-sitter-java ]; then \
git clone https://github.com/tree-sitter/tree-sitter-java deps/tree-sitter-java; \
fi
cd deps/tree-sitter-java && cc -o parser.so -I./src src/parser.c -Os -std=c11 -shared
mkdir -p $$(dirname $@)
cp deps/tree-sitter-java/parser.so $@
clean:
rm -rf deps/nvim-treesitter deps/neotest deps/tree-sitter-java
validate:
stylua --check .
format:
stylua .