-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
44 lines (31 loc) · 1.27 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
COMPILED_FILES:=js/vimlparser.js py/vimlparser.py
all: $(COMPILED_FILES)
test: clean_compiled check fast-test
fast-test: checkpy checkvim vim/test js/test py/test test/node_position/test_position.out
js/vimlparser.js: autoload/vimlparser.vim js/jscompiler.vim js/vimlfunc.js
scripts/jscompile.sh $< $@
py/vimlparser.py: autoload/vimlparser.vim py/pycompiler.vim py/vimlfunc.py
scripts/pycompile.sh $< $@
clean_compiled:
$(RM) $(COMPILED_FILES)
check: all fast-check
fast-check:
@git diff --exit-code $(COMPILED_FILES) || { \
echo 'Compiled files were updated, but should have been included/committed.'; \
exit 1; }
checkpy: all
flake8 py
# Run vint, using py/vimlparser.py.
checkvim: all
PYTHONPATH=py vint autoload py/pycompiler.vim
vim/test:
test/run.sh
js/test: js/vimlparser.js
test/run_command.sh node js/vimlparser.js
py/test: TEST_PYTHON?=python
py/test: py/vimlparser.py
test/run_command.sh $(TEST_PYTHON) py/vimlparser.py
test/node_position/test_position.out: test/node_position/test_position.vim test/node_position/test_position.ok
vim -Nu test/vimrc -i NONE -S test/node_position/test_position.vim
diff -u test/node_position/test_position.ok test/node_position/test_position.out
.PHONY: all clean_compiled check fast-check test fast-test vim/test js/test py/test