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