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