Skip to content

Commit c278c26

Browse files
authored
Merge pull request #46 from blueyed/makefile
Add Makefile to compile js/py files
2 parents 607863b + 9938a56 commit c278c26

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ script:
2727
- which -a vim
2828
- vim --cmd version --cmd quit
2929
- test/run.sh
30+
- make check

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
VIM_COMPILER:=vim -N --cmd 'set rtp+=.' -c q -u
2+
COMPILED_FILES:=js/vimlparser.js py/vimlparser.py
3+
4+
all: $(COMPILED_FILES)
5+
6+
js/vimlparser.js: autoload/vimlparser.vim js/jscompiler.vim js/vimlfunc.js
7+
$(VIM_COMPILER) js/jscompiler.vim
8+
9+
py/vimlparser.py: autoload/vimlparser.vim py/pycompiler.vim py/vimlfunc.py
10+
$(VIM_COMPILER) py/pycompiler.vim
11+
12+
check: all
13+
git diff --exit-code $(COMPILED_FILES) || { \
14+
echo 'Compiled files were updated, but should have been committed.'; \
15+
exit 1; }

0 commit comments

Comments
 (0)