blob: 781c8ad4666999ee7f023c419bd1f79c8cc0e01f [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001# 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
Bram Moolenaara3ffd9c2005-07-21 21:03:15 +000013LANGUAGES = \
14 af \
15 ca \
16 cs \
17 de \
18 en_GB \
Bram Moolenaar446cb832008-06-24 21:56:24 +000019 eo \
Bram Moolenaara3ffd9c2005-07-21 21:03:15 +000020 es \
Bram Moolenaar446cb832008-06-24 21:56:24 +000021 fi \
Bram Moolenaara3ffd9c2005-07-21 21:03:15 +000022 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
39MOFILES = \
40 af.mo \
41 ca.mo \
42 cs.mo \
43 de.mo \
44 en_GB.mo \
Bram Moolenaar446cb832008-06-24 21:56:24 +000045 eo.mo \
Bram Moolenaara3ffd9c2005-07-21 21:03:15 +000046 es.mo \
Bram Moolenaar446cb832008-06-24 21:56:24 +000047 fi.mo \
Bram Moolenaara3ffd9c2005-07-21 21:03:15 +000048 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 \
Bram Moolenaar071d4272004-06-13 20:20:40 +000064
65PACKAGE = 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
73MSGFMT = $(GETTEXT_PATH)msgfmt
74XGETTEXT = $(GETTEXT_PATH)xgettext
75MSGMERGE = $(GETTEXT_PATH)msgmerge
76
77MV = move
78CP = copy
79RM = del
80MKD = 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
89all: $(MOFILES)
90
91first_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
104install:
105 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)
106 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
107 $(CP) $(LANGUAGE).mo $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES\$(PACKAGE).mo
108
109clean:
110 $(RM) *.mo
111 $(RM) *.pot
112
113