annotate src/po/Make_cyg.mak @ 5961:b3796275b311

Added tag v7-4-321 for changeset c052937aae8c
author Bram Moolenaar <bram@vim.org>
date Thu, 12 Jun 2014 16:03:28 +0200
parents 3259c3923c1e
children 7e367104f6b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
1 # Makefile for the Vim message translations for Cygwin
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
2 # by Tony Mechelynck <antoine.mechelynck@skynet.be>
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
3 # after Make_ming.mak by
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
4 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
5 #
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
6 # Read the README_ming.txt file before using it.
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
7 #
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
8 # Use at your own risk but with care, it could even kill your canary.
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
9 #
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
10
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
11 ifndef VIMRUNTIME
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
12 VIMRUNTIME = ../../runtime
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
13 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
15 LANGUAGES = af \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
16 ca \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
17 cs \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
18 cs.cp1250 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
19 de \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
20 en_GB \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 434
diff changeset
21 eo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
22 es \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 434
diff changeset
23 fi \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
24 fr \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
25 ga \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
26 it \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
27 ja \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
28 ja.sjis \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
29 ko \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
30 ko.UTF-8 \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
31 no \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
32 pl \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
33 pl.cp1250 \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
34 pt_BR \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
35 ru \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
36 ru.cp1251 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
37 sk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
38 sk.cp1250 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
39 sv \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
40 uk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
41 uk.cp1251 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
42 vi \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
43 zh_CN \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
44 zh_CN.UTF-8 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
45 zh_CN.cp936 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
46 zh_TW \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
47 zh_TW.UTF-8 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
48
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
49 MOFILES = af.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
50 ca.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
51 cs.cp1250.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
52 cs.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
53 de.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
54 en_GB.mo \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 434
diff changeset
55 eo.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
56 es.mo \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 434
diff changeset
57 fi.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
58 fr.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
59 ga.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
60 it.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
61 ja.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
62 ja.sjis.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
63 ko.mo \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
64 ko.UTF-8.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
65 no.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
66 pl.cp1250.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
67 pl.mo \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
68 pt_BR.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
69 ru.cp1251.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
70 ru.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
71 sk.cp1250.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
72 sk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
73 sv.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
74 uk.cp1251.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
75 uk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
76 vi.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
77 zh_CN.UTF-8.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
78 zh_CN.cp936.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
79 zh_CN.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
80 zh_TW.UTF-8.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
81 zh_TW.mo \
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
82
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
83 PACKAGE = vim
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
84
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
85 # Uncomment one of the lines below or modify it to put the path to your
412
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
86 # gettext binaries
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
87 ifndef GETTEXT_PATH
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
88 #GETTEXT_PATH = C:/gettext.win32/bin/
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
89 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
90 GETTEXT_PATH = /bin/
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
91 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
92
412
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
93 # The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
94 # tools 0.10.37, which use a slightly different .po file format that is not
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
95 # compatible with Solaris (and old gettext implementations) unless these are
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
96 # set. gettext 0.10.36 will not work!
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
97 MSGFMT = OLD_PO_FILE_INPUT=yes $(GETTEXT_PATH)msgfmt -v
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
98 XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)xgettext
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
99 MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)msgmerge
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
100
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
101 # MV = move
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
102 # CP = copy
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
103 # RM = del
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
104 # MKD = mkdir
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
105 MV = mv -f
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
106 CP = cp -f
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
107 RM = rm -f
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
108 MKD = mkdir -p
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
109
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
110 .SUFFIXES:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
111 .SUFFIXES: .po .mo .pot
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
112 .PHONY: first_time all install clean $(LANGUAGES)
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
113
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
114 .po.mo:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
115 $(MSGFMT) -o $@ $<
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
116
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
117 all: $(MOFILES)
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
118
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
119 first_time:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
120 $(XGETTEXT) --default-domain=$(LANGUAGE) \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
121 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
122
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
123 $(LANGUAGES):
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
124 $(XGETTEXT) --default-domain=$(PACKAGE) \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
125 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
126 $(MV) $(PACKAGE).po $(PACKAGE).pot
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
127 $(CP) $@.po $@.po.orig
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
128 $(MV) $@.po $@.po.old
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
129 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
130 $(RM) $@.po.old
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
131
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
132 install: $(MOFILES)
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
133 for TARGET in $(LANGUAGES); do \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
134 $(MKD) $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES ; \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
135 $(CP) $$TARGET.mo $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES/$(PACKAGE).mo ; \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
136 done
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
137
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
138 clean:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
139 $(RM) *.mo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
140 $(RM) *.pot
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
141
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
142