-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 992 Bytes
/
Makefile
File metadata and controls
32 lines (22 loc) · 992 Bytes
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
COMPILED_FILES:=js/vimlparser.js py/vimlparser.py
all: $(COMPILED_FILES)
js/vimlparser.js: autoload/vital/__vimlparser__/VimLParser.vim js/jscompiler.vim js/vimlfunc.js
scripts/jscompile.sh $< $@
py/vimlparser.py: autoload/vital/__vimlparser__/VimLParser.vim py/pycompiler.vim py/vimlfunc.py
scripts/pycompile.sh $< $@
clean_compiled:
$(RM) $(COMPILED_FILES)
check: all
git diff --exit-code $(COMPILED_FILES) || { \
echo 'Compiled files were updated, but should have been included/committed.'; \
exit 1; }
test:
test/run.sh
js/test: js/vimlparser.js
test/run_command.sh node js/vimlparser.js
py/test: py/vimlparser.py
test/run_command.sh 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 -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 test js/test py/test