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