File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 1
1
/* .mo
2
+ /* .ck
2
3
/* .po.bak
3
4
/* .po.new
4
5
/* .po.old
Original file line number Diff line number Diff line change 1
1
MASTER_PO = ja.po
2
- TEST_TARGETS = ja.mo \
3
- ja.euc-jp.mo \
4
- ja.sjis.mo
2
+
3
+ MOFILES = ja.mo \
4
+ ja.euc-jp.mo \
5
+ ja.sjis.mo
6
+
7
+ CHECKFILES = ja.ck \
8
+ ja.euc-jp.ck \
9
+ ja.sjis.ck
5
10
6
11
MSGFMT = OLD_PO_FILE_INPUT=yes msgfmt
7
12
8
- .SUFFIXES : .po .mo
13
+ .SUFFIXES : .po .mo .ck
9
14
10
- test : $( TEST_TARGETS )
15
+ test : check $( MOFILES )
11
16
12
17
update : ja.sjis.po ja.euc-jp.po
13
18
@@ -38,7 +43,7 @@ merge-force:
38
43
touch vim.pot
39
44
@$(MAKE ) merge
40
45
41
- clean :
46
+ clean : checkclean
42
47
rm -f sjiscorr sjiscorr.exe
43
48
rm -f ja.sjis.po ja.euc-jp.po
44
49
rm -f * .mo
@@ -50,3 +55,13 @@ clean:
50
55
51
56
.po.mo :
52
57
$(MSGFMT ) -v -o $@ $<
58
+
59
+ .po.ck :
60
+ vim -u NONE --noplugins -e -s -X --cmd " set enc=utf-8" -S check.vim \
61
+ -c " if error == 0 | q | else | num 2 | cq | endif" $<
62
+ touch $@
63
+
64
+ check : $(CHECKFILES )
65
+
66
+ checkclean :
67
+ rm -f * .ck
You can’t perform that action at this time.
0 commit comments