Skip to content

Commit e1cb9bc

Browse files
committed
Run check.vim when testing
1 parent a2ef03c commit e1cb9bc

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/po/Makefile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
MASTER_PO = ja.po
2-
TEST_TARGETS = ja.mo \
3-
ja.euc-jp.mo \
4-
ja.sjis.mo
2+
MOFILES = ja.mo \
3+
ja.euc-jp.mo \
4+
ja.sjis.mo
5+
CHECKFILES = ja.ck \
6+
ja.euc-jp.ck \
7+
ja.sjis.ck
58

69
MSGFMT = OLD_PO_FILE_INPUT=yes msgfmt
710

8-
.SUFFIXES: .po .mo
11+
.SUFFIXES: .po .mo .ck
912

10-
test: $(TEST_TARGETS)
13+
test: $(MOFILES) $(CHECKFILES)
1114

1215
update: ja.sjis.po ja.euc-jp.po
1316

@@ -41,7 +44,7 @@ merge-force:
4144
clean:
4245
rm -f sjiscorr sjiscorr.exe
4346
rm -f ja.sjis.po ja.euc-jp.po
44-
rm -f *.mo
47+
rm -f *.mo *.ck
4548

4649
#ja.po: vim.pot
4750
@@ -50,3 +53,7 @@ clean:
5053

5154
.po.mo:
5255
$(MSGFMT) -v -o $@ $<
56+
57+
.po.ck:
58+
vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq $<
59+
touch $@

0 commit comments

Comments
 (0)