forked from lewis6991/gitsigns.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (44 loc) · 1.19 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
57
58
export PJ_ROOT=$(PWD)
FILTER=.*
INIT_LUAROCKS := eval $$(luarocks --lua-version=5.1 path) &&
.DEFAULT_GOAL := build
NEOVIM_BRANCH := master
neovim:
git clone --depth 1 https://github.com/neovim/neovim --branch $(NEOVIM_BRANCH)
make -C $@
plenary.nvim:
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim
export VIMRUNTIME=$(PWD)/neovim/runtime
.PHONY: test
test: neovim plenary.nvim
$(INIT_LUAROCKS) neovim/.deps/usr/bin/busted \
-v \
--lazy \
--helper=$(PWD)/test/preload.lua \
--output test.busted.outputHandlers.nvim \
--lpath=$(PWD)/neovim/?.lua \
--lpath=$(PWD)/neovim/build/?.lua \
--lpath=$(PWD)/neovim/runtime/lua/?.lua \
--lpath=$(PWD)/?.lua \
--lpath=$(PWD)/lua/?.lua \
--lpath=$(PWD)/plenary.nvim/lua/?.lua \
--lpath=$(PWD)/plenary.nvim/lua/?/init.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