forked from lewis6991/gitsigns.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (36 loc) · 966 Bytes
/
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
40
41
42
43
44
45
46
47
48
49
50
export PJ_ROOT=$(PWD)
FILTER=.*
BUSTED_ARGS = \
--lpath=$(PJ_ROOT)/lua/?.lua \
--lpath=$(PJ_ROOT)/plenary.nvim/lua/?.lua \
--filter=$(FILTER)
TEST_FILE = $(PJ_ROOT)/test/gitsigns_spec.lua
INIT_LUAROCKS := eval $$(luarocks --lua-version=5.1 path) &&
.DEFAULT_GOAL := build
neovim:
git clone --depth 1 https://github.com/neovim/neovim
make -C $@
plenary.nvim:
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim
.PHONY: test
test: neovim plenary.nvim
make -C neovim functionaltest \
CMAKE_BUILD_TYPE=Release \
BUSTED_ARGS="$(BUSTED_ARGS)" \
TEST_FILE="$(TEST_FILE)"
.PHONY: tl-check
tl-check:
$(INIT_LUAROCKS) tl check teal/*.tl teal/**/*.tl
.PHONY: tl-build
tl-build: tlconfig.lua
@$(INIT_LUAROCKS) tl build
@echo Updated lua files
.PHONY: gen_help
gen_help:
@$(INIT_LUAROCKS) ./gen_help.lua
@echo Updated help
.PHONY: build
build: tl-build gen_help
.PHONY: tl-ensure
tl-ensure: tl-build
git diff --exit-code -- lua