Mercurial > vim
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 |
rev | line source |
---|---|
7 | 1 # Makefile for the Vim message translations for MSVC |
2 # (based on make_ming.mak) | |
3 # | |
4 # Mike Williams <mrw@eandem.co.uk> | |
5 # | |
6 # Please read README_mvc.txt before using this file. | |
7 # | |
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 | 13 LANGUAGES = \ |
14 af \ | |
15 ca \ | |
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 | 18 de \ |
19 en_GB \ | |
1621 | 20 eo \ |
435 | 21 es \ |
1621 | 22 fi \ |
435 | 23 fr \ |
24 ga \ | |
25 it \ | |
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 | 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 | 33 no \ |
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 | 37 pt_BR \ |
435 | 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 | 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 | 42 sv \ |
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 | 45 vi \ |
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 | 48 zh_CN.UTF-8 \ |
49 zh_TW \ | |
50 zh_TW.UTF-8 \ | |
51 | |
52 MOFILES = \ | |
53 af.mo \ | |
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 | 56 cs.mo \ |
57 de.mo \ | |
58 en_GB.mo \ | |
1621 | 59 eo.mo \ |
435 | 60 es.mo \ |
1621 | 61 fi.mo \ |
435 | 62 fr.mo \ |
63 ga.mo \ | |
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 | 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 | 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 | 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 | 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 | 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 | 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 | 80 sk.mo \ |
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 | 83 uk.mo \ |
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 | 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 | 89 zh_TW.UTF-8.mo \ |
7 | 90 |
91 PACKAGE = vim | |
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 | 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 | 97 XGETTEXT = $(GETTEXT_PATH)\xgettext |
98 MSGMERGE = $(GETTEXT_PATH)\msgmerge | |
99 | |
100 MV = move | |
101 CP = copy | |
102 RM = del | |
103 MKD = mkdir | |
104 LS = dir | |
105 | |
106 LSFLAGS = /b /on /l /s | |
107 | |
108 INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES | |
109 | |
110 .SUFFIXES: | |
111 .SUFFIXES: .po .mo .pot | |
112 | |
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 | 115 $(MSGFMT) -o $@ $< |
116 | |
117 all: $(MOFILES) | |
118 | |
119 files: | |
120 $(LS) $(LSFLAGS) ..\*.c ..\if_perl.xs ..\globals.h > .\files | |
121 | |
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 | 125 $(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files |
126 | |
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 | 130 $(XGETTEXT) --default-domain=$(PACKAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files |
131 $(MV) $(PACKAGE).po $(PACKAGE).pot | |
132 $(CP) $@.po $@.po.orig | |
133 $(MV) $@.po $@.po.old | |
134 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po | |
135 $(RM) $@.po.old | |
136 | |
137 install: | |
138 if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR) | |
139 $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo | |
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 | 145 clean: |
146 $(RM) *.mo | |
147 $(RM) *.pot |