annotate src/po/Make_mvc.mak @ 8913:caffda31048c v7.4.1743

commit https://github.com/vim/vim/commit/75be2339d877bbd38df91c0181e1e0e388852df6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 14 23:10:40 2016 +0200 patch 7.4.1743 Problem: Clang warns for uninitialzed variable. (Michael Jarvis) Solution: Initialize it.
author Christian Brabandt <cb@256bit.org>
date Thu, 14 Apr 2016 23:15:05 +0200
parents 7e367104f6b6
children f48a1c8c5961
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 # Makefile for the Vim message translations for MSVC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 # (based on make_ming.mak)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 # Mike Williams <mrw@eandem.co.uk>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 # Please read README_mvc.txt before using this file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
9 !ifndef VIMRUNTIME
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
10 VIMRUNTIME = ..\..\runtime
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
11 !endif
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
12
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
13 LANGUAGES = \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
14 af \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
15 ca \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
16 cs \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
17 cs.cp1250 \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
18 de \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
19 en_GB \
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 435
diff changeset
20 eo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
21 es \
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 435
diff changeset
22 fi \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
23 fr \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
24 ga \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
25 it \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
26 ja \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
27 ja.euc-jp \
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
28 ja.sjis \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
29 ko \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
30 ko.UTF-8 \
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
31 nb \
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
32 nl \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
33 no \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
34 pl \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
35 pl.cp1250 \
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
36 pl.UTF-8 \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1621
diff changeset
37 pt_BR \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
38 ru \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
39 ru.cp1251 \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
40 sk \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
41 sk.cp1250 \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
42 sv \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
43 uk \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
44 uk.cp1251 \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
45 vi \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
46 zh_CN \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
47 zh_CN.cp936 \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
48 zh_CN.UTF-8 \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
49 zh_TW \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
50 zh_TW.UTF-8 \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
51
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
52 MOFILES = \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
53 af.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
54 ca.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
55 cs.cp1250.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
56 cs.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
57 de.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
58 en_GB.mo \
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 435
diff changeset
59 eo.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
60 es.mo \
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 435
diff changeset
61 fi.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
62 fr.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
63 ga.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
64 it.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
65 ja.euc-jp.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
66 ja.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
67 ja.sjis.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
68 ko.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
69 ko.UTF-8.mo \
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
70 nb.mo \
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
71 nl.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
72 no.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
73 pl.cp1250.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
74 pl.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
75 pl.UTF-8.mo \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1621
diff changeset
76 pt_BR.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
77 ru.cp1251.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
78 ru.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
79 sk.cp1250.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
80 sk.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
81 sv.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
82 uk.cp1251.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
83 uk.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
84 vi.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
85 zh_CN.mo \
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
86 zh_CN.cp936.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
87 zh_CN.UTF-8.mo \
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
88 zh_TW.mo \
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
89 zh_TW.UTF-8.mo \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 PACKAGE = vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
2472
3567e0d56891 Updated version of gettext for use with MVC. (Mike Williams)
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
93 # Correct the following line for the directory where gettext et al is installed
3567e0d56891 Updated version of gettext for use with MVC. (Mike Williams)
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
94 GETTEXT_PATH = H:\gettext.0.14.4\bin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
96 MSGFMT = $(GETTEXT_PATH)\msgfmt -v
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 XGETTEXT = $(GETTEXT_PATH)\xgettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 MSGMERGE = $(GETTEXT_PATH)\msgmerge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 MV = move
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 CP = copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 RM = del
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 MKD = mkdir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 LS = dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 LSFLAGS = /b /on /l /s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 .SUFFIXES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 .SUFFIXES: .po .mo .pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 .po.mo:
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
114 set OLD_PO_FILE_INPUT=yes
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 $(MSGFMT) -o $@ $<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 all: $(MOFILES)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 files:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 $(LS) $(LSFLAGS) ..\*.c ..\if_perl.xs ..\globals.h > .\files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 first_time: files
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
123 set OLD_PO_FILE_INPUT=yes
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
124 set OLD_PO_FILE_OUTPUT=yes
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 $(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 $(LANGUAGES): files
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
128 set OLD_PO_FILE_INPUT=yes
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
129 set OLD_PO_FILE_OUTPUT=yes
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 $(XGETTEXT) --default-domain=$(PACKAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 $(MV) $(PACKAGE).po $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 $(CP) $@.po $@.po.orig
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 $(MV) $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 $(RM) $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 install:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
141 install-all: all
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
142 FOR %%l IN ($(LANGUAGES)) DO @IF NOT EXIST $(VIMRUNTIME)\lang\%%l\LC_MESSAGES $(MKD) $(VIMRUNTIME)\lang\%%l\LC_MESSAGES
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
143 FOR %%l IN ($(LANGUAGES)) DO @$(CP) %%l.mo $(VIMRUNTIME)\lang\%%l\LC_MESSAGES\$(PACKAGE).mo
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
144
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 $(RM) *.mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 $(RM) *.pot