forked from lewis6991/gitsigns.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (42 loc) · 1.1 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export PJ_ROOT=$(PWD)
FILTER ?= .*
INIT_LUAROCKS := eval $$(luarocks --lua-version=5.1 path) &&
.DEFAULT_GOAL := build
NEOVIM_BRANCH := master
deps/neovim:
@mkdir -p deps
git clone --depth 1 https://github.com/neovim/neovim --branch $(NEOVIM_BRANCH) $@
make -C $@
export VIMRUNTIME=$(PWD)/deps/neovim/runtime
export TEST_COLORS=1
.PHONY: test
test: deps/neovim
$(INIT_LUAROCKS) deps/neovim/.deps/usr/bin/busted \
-v \
--lazy \
--helper=$(PWD)/test/preload.lua \
--output test.busted.outputHandlers.nvim \
--lpath=$(PWD)/deps/neovim/?.lua \
--lpath=$(PWD)/deps/neovim/build/?.lua \
--lpath=$(PWD)/deps/neovim/runtime/lua/?.lua \
--lpath=$(PWD)/deps/?.lua \
--lpath=$(PWD)/lua/?.lua \
--filter="$(FILTER)" \
$(PWD)/test
-@stty sane
.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