7
|
1 # Makefile for the Vim message translations for mingw32
|
|
2 #
|
|
3 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
|
|
4 #
|
|
5 # Read the README_ming.txt file before using it.
|
|
6 #
|
|
7 # Use at your own risk but with care, it could even kill your canary.
|
|
8 #
|
|
9 # Previous to all you must have the environment variable LANGUAGE set to your
|
|
10 # language (xx) and add it to the next three lines.
|
|
11 #
|
|
12
|
434
|
13 LANGUAGES = \
|
|
14 af \
|
|
15 ca \
|
|
16 cs \
|
|
17 de \
|
|
18 en_GB \
|
1621
|
19 eo \
|
434
|
20 es \
|
1621
|
21 fi \
|
434
|
22 fr \
|
|
23 ga \
|
|
24 it \
|
|
25 ja \
|
|
26 ko \
|
|
27 no \
|
|
28 pl \
|
|
29 ru \
|
|
30 sk \
|
|
31 sv \
|
|
32 uk \
|
|
33 vi \
|
|
34 zh_CN \
|
|
35 zh_CN.UTF-8\
|
|
36 zh_TW \
|
|
37 zh_TW.UTF-8 \
|
|
38
|
|
39 MOFILES = \
|
|
40 af.mo \
|
|
41 ca.mo \
|
|
42 cs.mo \
|
|
43 de.mo \
|
|
44 en_GB.mo \
|
1621
|
45 eo.mo \
|
434
|
46 es.mo \
|
1621
|
47 fi.mo \
|
434
|
48 fr.mo \
|
|
49 ga.mo \
|
|
50 it.mo \
|
|
51 ja.mo \
|
|
52 ko.mo \
|
|
53 no.mo \
|
|
54 pl.mo \
|
|
55 ru.mo \
|
|
56 sk.mo \
|
|
57 sv.mo \
|
|
58 uk.mo \
|
|
59 vi.mo \
|
|
60 zh_CN.UTF-8.mo \
|
|
61 zh_CN.mo \
|
|
62 zh_TW.UTF-8.mo \
|
|
63 zh_TW.mo \
|
7
|
64
|
|
65 PACKAGE = vim
|
|
66
|
|
67 # Uncomment one of the lines below or modify it to put the path to your
|
|
68 # gettex binaries; I use the first
|
|
69 #GETTEXT_PATH = C:/gettext.win32/bin/
|
|
70 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
|
|
71 #GETTEXT_PATH = C:/cygwin/bin/
|
|
72
|
|
73 MSGFMT = $(GETTEXT_PATH)msgfmt
|
|
74 XGETTEXT = $(GETTEXT_PATH)xgettext
|
|
75 MSGMERGE = $(GETTEXT_PATH)msgmerge
|
|
76
|
|
77 MV = move
|
|
78 CP = copy
|
|
79 RM = del
|
|
80 MKD = mkdir
|
|
81
|
|
82 .SUFFIXES:
|
|
83 .SUFFIXES: .po .mo .pot
|
|
84 .PHONY: first_time all install clean $(LANGUAGES)
|
|
85
|
|
86 .po.mo:
|
|
87 $(MSGFMT) -o $@ $<
|
|
88
|
|
89 all: $(MOFILES)
|
|
90
|
|
91 first_time:
|
|
92 $(XGETTEXT) --default-domain=$(LANGUAGE) \
|
|
93 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
|
|
94
|
|
95 $(LANGUAGES):
|
|
96 $(XGETTEXT) --default-domain=$(PACKAGE) \
|
|
97 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
|
|
98 $(MV) $(PACKAGE).po $(PACKAGE).pot
|
|
99 $(CP) $@.po $@.po.orig
|
|
100 $(MV) $@.po $@.po.old
|
|
101 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
|
|
102 $(RM) $@.po.old
|
|
103
|
|
104 install:
|
|
105 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)
|
|
106 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
|
|
107 $(CP) $(LANGUAGE).mo $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES\$(PACKAGE).mo
|
|
108
|
|
109 clean:
|
|
110 $(RM) *.mo
|
|
111 $(RM) *.pot
|
|
112
|
|
113
|