annotate src/po/Makefile @ 4440:dfbe53a54c79 v7.3.968

updated for version 7.3.968 Problem: Multi-byte support is only available when compiled with "big" features. Solution: Include multi-byte by default, with "normal" features.
author Bram Moolenaar <bram@vim.org>
date Sat, 18 May 2013 20:45:59 +0200
parents 12636b824816
children 605c9ce57ec3
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.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 # TODO make this configurable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 # Note: ja.sjis, *.cp1250 and zh_CN.cp936 are only for MS-Windows, they are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 # not installed on Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
7 LANGUAGES = \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
8 af \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
9 ca \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
10 cs \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
11 de \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
12 en_GB \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
13 eo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
14 es \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
15 fi \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
16 fr \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
17 ga \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
18 it \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
19 ja \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
20 ko \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
21 ko.UTF-8 \
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
22 nb \
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2505
diff changeset
23 nl \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
24 no \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
25 pl \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
26 pt_BR \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
27 ru \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
28 sk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
29 sv \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
30 uk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
31 vi \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
32 zh_CN \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
33 zh_CN.UTF-8 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
34 zh_TW \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
35 zh_TW.UTF-8
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
36
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
37 CONVERTED = \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
38 cs.cp1250 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
39 ja.sjis \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
40 pl.cp1250 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
41 pl.UTF-8 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
42 ru.cp1251 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
43 sk.cp1250 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
44 uk.cp1251 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
45 zh_CN.cp936
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
46
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
47 MOFILES = \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
48 af.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
49 ca.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
50 cs.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
51 de.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
52 en_GB.mo \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
53 eo.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
54 es.mo \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
55 fi.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
56 fr.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
57 ga.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
58 it.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
59 ja.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
60 ko.mo \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
61 ko.UTF-8.mo \
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
62 nb.mo \
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2505
diff changeset
63 nl.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
64 no.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
65 pl.mo \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
66 pt_BR.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
67 ru.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
68 sk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
69 sv.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
70 uk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
71 vi.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
72 zh_CN.UTF-8.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
73 zh_CN.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
74 zh_TW.UTF-8.mo \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
75 zh_TW.mo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
77 MOCONVERTED = \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
78 cs.cp1250.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
79 ja.sjis.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
80 pl.cp1250.mo \
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
81 pl.UTF-8.mo \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
82 ru.cp1251.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
83 sk.cp1250.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
84 uk.cp1251.mo \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
85 zh_CN.cp936.mo
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
86
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
87 CHECKFILES = \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
88 af.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
89 ca.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
90 cs.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
91 de.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
92 en_GB.ck \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
93 eo.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
94 es.ck \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
95 fi.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
96 fr.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
97 ga.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
98 it.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
99 ja.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
100 ko.ck \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
101 ko.UTF-8.ck \
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
102 nb.ck \
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2505
diff changeset
103 nl.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
104 no.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
105 pl.ck \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
106 pt_BR.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
107 ru.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
108 sk.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
109 sv.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
110 uk.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
111 vi.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
112 zh_CN.UTF-8.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
113 zh_CN.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
114 zh_TW.UTF-8.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
115 zh_TW.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
116 cs.cp1250.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
117 ja.sjis.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
118 pl.cp1250.ck \
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
119 pl.UTF-8.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
120 ru.cp1251.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
121 sk.cp1250.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
122 uk.cp1251.ck \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
123 zh_CN.cp936.ck
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
124
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 PACKAGE = vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 SHELL = /bin/sh
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
127 VIM = ../vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 # The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 # tools 0.10.37, which use a slightly different .po file format that is not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 # compatible with Solaris (and old gettext implementations) unless these are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 # set. gettext 0.10.36 will not work!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 MSGFMT = OLD_PO_FILE_INPUT=yes msgfmt -v
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes xgettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 .SUFFIXES:
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
138 .SUFFIXES: .po .mo .pot .ck
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
139 .PHONY: all install uninstall prefixcheck converted check clean checkclean distclean update-po $(LANGUAGES) $(CONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 .po.mo:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 $(MSGFMT) -o $@ $<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
144 .po.ck:
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
145 $(VIM) -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq $<
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
146 touch $@
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
147
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
148 all: $(MOFILES) $(MOCONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
150 check: $(CHECKFILES)
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
151
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
152 install: $(MOFILES) $(MOCONVERTED)
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
153 @$(MAKE) prefixcheck
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
154 for lang in $(LANGUAGES) $(CONVERTED); do \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 dir=$(LOCALEDIR)/$$lang/; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 if test ! -x "$$dir"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 mkdir $$dir; chmod 755 $$dir; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 if test ! -x "$$dir"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 mkdir $$dir; chmod 755 $$dir; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 if test -r $$lang.mo; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 $(INSTALL_DATA) $$lang.mo $$dir/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 chmod $(FILEMOD) $$dir/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 uninstall:
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
170 @$(MAKE) prefixcheck
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
171 for cat in $(MOFILES) $(MOCONVERTED); do \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 cat=`basename $$cat`; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 rm -f $(LOCALEDIR)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
177 converted: $(MOCONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178
4340
12636b824816 updated for version 7.3.919
Bram Moolenaar <bram@vim.org>
parents: 4067
diff changeset
179 # nl.po was added later, if it does not exist use a file with just a # in it
12636b824816 updated for version 7.3.919
Bram Moolenaar <bram@vim.org>
parents: 4067
diff changeset
180 # (an empty file doesn't work with old msgfmt).
4067
386fc822dd00 updated for version 7.3.788
Bram Moolenaar <bram@vim.org>
parents: 4019
diff changeset
181 nl.po:
4340
12636b824816 updated for version 7.3.919
Bram Moolenaar <bram@vim.org>
parents: 4067
diff changeset
182 @( echo \# > nl.po )
4067
386fc822dd00 updated for version 7.3.788
Bram Moolenaar <bram@vim.org>
parents: 4019
diff changeset
183
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
184 # Norwegian/Bokmal: "nb" is an alias for "no".
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
185 # Copying the file is not efficient, but I don't know of another way to make
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
186 # this work.
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
187 nb.po: no.po
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
188 cp no.po nb.po
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
189
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 # Convert ja.po to create ja.sjis.po. Requires doubling backslashes in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 # second byte. Don't depend on sjiscorr, it should only be compiled when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 # ja.sjis.po is outdated.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 ja.sjis.po: ja.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 @$(MAKE) sjiscorr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 rm -f ja.sjis.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 iconv -f euc-jp -t cp932 ja.po | ./sjiscorr > ja.sjis.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 sjiscorr: sjiscorr.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 $(CC) -o sjiscorr sjiscorr.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 # Convert cs.po to create cs.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 cs.cp1250.po: cs.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 rm -f cs.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 iconv -f iso-8859-2 -t cp1250 cs.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from cs.po, DO NOT EDIT/' > cs.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 # Convert pl.po to create pl.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 pl.cp1250.po: pl.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 rm -f pl.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 iconv -f iso-8859-2 -t cp1250 pl.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
213 # Convert pl.po to create pl.UTF-8.po.
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
214 pl.UTF-8.po: pl.po
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
215 rm -f pl.UTF-8.po
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
216 iconv -f iso-8859-2 -t utf-8 pl.po | \
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
217 sed -e 's/charset=ISO-8859-2/charset=utf-8/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.UTF-8.po
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
218
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 # Convert sk.po to create sk.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 sk.cp1250.po: sk.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 rm -f sk.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 iconv -f iso-8859-2 -t cp1250 sk.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from sk.po, DO NOT EDIT/' > sk.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 # Convert zh_CN.po to create zh_CN.cp936.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 # set 'charset' to gbk to avoid that msfmt generates a warning
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 zh_CN.cp936.po: zh_CN.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 rm -f zh_CN.cp936.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 iconv -f gb2312 -t cp936 zh_CN.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 sed -e 's/charset=gb2312/charset=gbk/' -e 's/# Original translations/# Generated from zh_CN.po, DO NOT EDIT/' > zh_CN.cp936.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
232 # Convert ko.UTF-8.po to create ko.po.
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
233 ko.po: ko.UTF-8.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
234 rm -f ko.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
235 iconv -f UTF-8 -t euc-kr ko.UTF-8.po | \
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
236 sed -e 's/charset=UTF-8/charset=euc-kr/' \
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
237 -e 's/# Korean translation for Vim/# Generated from ko.UTF-8.po, DO NOT EDIT/' \
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
238 > ko.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
239
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 # Convert ru.po to create ru.cp1251.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 ru.cp1251.po: ru.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 rm -f ru.cp1251.po
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
243 iconv -f utf-8 -t cp1251 ru.po | \
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
244 sed -e 's/charset=utf-8/charset=cp1251/' -e 's/# Original translations/# Generated from ru.po, DO NOT EDIT/' > ru.cp1251.po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245
23
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
246 # Convert uk.po to create uk.cp1251.po.
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
247 uk.cp1251.po: uk.po
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
248 rm -f uk.cp1251.po
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
249 iconv -f utf-8 -t cp1251 uk.po | \
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
250 sed -e 's/charset=utf-8/charset=cp1251/' -e 's/# Original translations/# Generated from uk.po, DO NOT EDIT/' > uk.cp1251.po
23
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
251
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
252 prefixcheck:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 @if test "x" = "x$(prefix)"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 echo "******************************************"; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 echo " please use make from the src directory "; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 echo "******************************************"; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 exit 1; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 fi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259
628
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
260 clean: checkclean
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
261 rm -f core core.* *.old.po *.mo *.pot sjiscorr
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 distclean: clean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264
628
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
265 checkclean:
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
266 rm -f *.ck
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
267
2505
4aa73aa648bc Some messages were missing when updating translations. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
268 $(PACKAGE).pot: ../*.c ../if_perl.xs ../GvimExt/gvimext.cpp ../globals.h ../if_py_both.h
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 cd ..; $(XGETTEXT) --default-domain=$(PACKAGE) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 --add-comments --keyword=_ --keyword=N_ \
2505
4aa73aa648bc Some messages were missing when updating translations. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
271 *.c if_perl.xs GvimExt/gvimext.cpp globals.h if_py_both.h
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 mv -f ../$(PACKAGE).po $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
274 update-po: $(LANGUAGES)
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
275
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 # Don't add a dependency here, we only want to update the .po files manually
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 $(LANGUAGES):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 @$(MAKE) $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 if test ! -f $@.po.orig; then cp $@.po $@.po.orig; fi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 mv $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 if $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 rm -f $@.po.old; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 else \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 echo "msgmerge for $@.po failed!"; mv $@.po.old $@.po; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 fi