annotate src/po/Make_cyg.mak @ 2001:98cdf5c477ec v7.2.298

updated for version 7.2-298
author vimboss
date Tue, 17 Nov 2009 13:57:22 +0000
parents f4f8014d516e
children 3259c3923c1e
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 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
30 no \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
31 pl \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
32 pl.cp1250 \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
33 pt_BR \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
34 ru \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
35 ru.cp1251 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
36 sk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
37 sk.cp1250 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
38 sv \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
39 uk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
40 uk.cp1251 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
41 vi \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
42 zh_CN \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
43 zh_CN.UTF-8 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
44 zh_CN.cp936 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
45 zh_TW \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
46 zh_TW.UTF-8 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
47
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
48 MOFILES = af.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
49 ca.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
50 cs.cp1250.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
51 cs.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
52 de.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
53 en_GB.mo \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 434
diff changeset
54 eo.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
55 es.mo \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 434
diff changeset
56 fi.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
57 fr.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
58 ga.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
59 it.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
60 ja.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
61 ja.sjis.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
62 ko.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
63 no.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
64 pl.cp1250.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
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: 412
diff changeset
67 ru.cp1251.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
68 ru.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
69 sk.cp1250.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
70 sk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
71 sv.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
72 uk.cp1251.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
73 uk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
74 vi.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
75 zh_CN.UTF-8.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
76 zh_CN.cp936.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
77 zh_CN.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
78 zh_TW.UTF-8.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 412
diff changeset
79 zh_TW.mo \
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
80
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
81 PACKAGE = vim
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
82
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
83 # 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
84 # gettext binaries
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
85 ifndef GETTEXT_PATH
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
86 #GETTEXT_PATH = C:/gettext.win32/bin/
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
87 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
88 GETTEXT_PATH = /bin/
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
89 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
90
412
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
91 # 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
92 # 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
93 # compatible with Solaris (and old gettext implementations) unless these are
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
94 # set. gettext 0.10.36 will not work!
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
95 MSGFMT = OLD_PO_FILE_INPUT=yes $(GETTEXT_PATH)msgfmt -v
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
96 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
97 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
98
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
99 # MV = move
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
100 # CP = copy
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
101 # RM = del
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
102 # MKD = mkdir
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
103 MV = mv -f
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
104 CP = cp -f
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
105 RM = rm -f
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
106 MKD = mkdir -p
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
107
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
108 .SUFFIXES:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
109 .SUFFIXES: .po .mo .pot
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
110 .PHONY: first_time all install clean $(LANGUAGES)
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
111
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
112 .po.mo:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
113 $(MSGFMT) -o $@ $<
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
114
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
115 all: $(MOFILES)
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
116
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
117 first_time:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
118 $(XGETTEXT) --default-domain=$(LANGUAGE) \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
119 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
120
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
121 $(LANGUAGES):
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
122 $(XGETTEXT) --default-domain=$(PACKAGE) \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
123 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
124 $(MV) $(PACKAGE).po $(PACKAGE).pot
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
125 $(CP) $@.po $@.po.orig
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
126 $(MV) $@.po $@.po.old
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
127 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
128 $(RM) $@.po.old
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
129
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
130 install: $(MOFILES)
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
131 for TARGET in $(LANGUAGES); do \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
132 $(MKD) $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES ; \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
133 $(CP) $$TARGET.mo $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES/$(PACKAGE).mo ; \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
134 done
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
135
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
136 clean:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
137 $(RM) *.mo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
138 $(RM) *.pot
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
139
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
140