annotate src/po/Make_mvc.mak @ 1106:6c4da3e24371 v7.0.232

updated for version 7.0-232
author vimboss
date Thu, 26 Apr 2007 16:20:50 +0000
parents 73f016dbb279
children 82b5078be2dd
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
435
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
9 LANGUAGES = \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
10 af \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
11 ca \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
12 cs \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
13 de \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
14 en_GB \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
15 es \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
16 fr \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
17 ga \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
18 it \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
19 ja \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
20 ko \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
21 no \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
22 pl \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
23 ru \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
24 sk \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
25 sv \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
26 uk \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
27 vi \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
28 zh_CN \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
29 zh_CN.UTF-8 \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
30 zh_TW \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
31 zh_TW.UTF-8 \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
32
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
33 MOFILES = \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
34 af.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
35 ca.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
36 cs.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
37 de.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
38 en_GB.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
39 es.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
40 fr.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
41 ga.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
42 it.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
43 ja.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
44 ko.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
45 no.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
46 pl.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
47 ru.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
48 sk.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
49 sv.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
50 uk.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
51 vi.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
52 zh_CN.UTF-8.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
53 zh_CN.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
54 zh_TW.UTF-8.mo \
73f016dbb279 updated for version 7.0112
vimboss
parents: 170
diff changeset
55 zh_TW.mo \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 PACKAGE = vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 # Correct the following line for the installation directory of gettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 GETTEXT_PATH = H:\gettext.win32.msvcrt\bin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 MSGFMT = $(GETTEXT_PATH)\msgfmt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 XGETTEXT = $(GETTEXT_PATH)\xgettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 MSGMERGE = $(GETTEXT_PATH)\msgmerge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 MV = move
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 CP = copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 RM = del
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 MKD = mkdir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 LS = dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 LSFLAGS = /b /on /l /s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 .SUFFIXES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 .SUFFIXES: .po .mo .pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 .po.mo:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 $(MSGFMT) -o $@ $<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 all: $(MOFILES)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 files:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 $(LS) $(LSFLAGS) ..\*.c ..\if_perl.xs ..\globals.h > .\files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 first_time: files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 $(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 $(LANGUAGES): files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 $(XGETTEXT) --default-domain=$(PACKAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 $(MV) $(PACKAGE).po $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 $(CP) $@.po $@.po.orig
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 $(MV) $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 $(RM) $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 install:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 $(RM) *.mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 $(RM) *.pot