blob: 574bdd256729a129894e8e1a79a02b7d95092fa8 [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 \
19 es \
20 fr \
21 ga \
22 it \
23 ja \
24 ko \
25 no \
26 pl \
27 ru \
28 sk \
29 sv \
30 uk \
31 vi \
32 zh_CN \
33 zh_CN.UTF-8\
34 zh_TW \
35 zh_TW.UTF-8 \
36
37MOFILES = \
38 af.mo \
39 ca.mo \
40 cs.mo \
41 de.mo \
42 en_GB.mo \
43 es.mo \
44 fr.mo \
45 ga.mo \
46 it.mo \
47 ja.mo \
48 ko.mo \
49 no.mo \
50 pl.mo \
51 ru.mo \
52 sk.mo \
53 sv.mo \
54 uk.mo \
55 vi.mo \
56 zh_CN.UTF-8.mo \
57 zh_CN.mo \
58 zh_TW.UTF-8.mo \
59 zh_TW.mo \
Bram Moolenaar071d4272004-06-13 20:20:40 +000060
61PACKAGE = vim
62
63# Uncomment one of the lines below or modify it to put the path to your
64# gettex binaries; I use the first
65#GETTEXT_PATH = C:/gettext.win32/bin/
66#GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
67#GETTEXT_PATH = C:/cygwin/bin/
68
69MSGFMT = $(GETTEXT_PATH)msgfmt
70XGETTEXT = $(GETTEXT_PATH)xgettext
71MSGMERGE = $(GETTEXT_PATH)msgmerge
72
73MV = move
74CP = copy
75RM = del
76MKD = mkdir
77
78.SUFFIXES:
79.SUFFIXES: .po .mo .pot
80.PHONY: first_time all install clean $(LANGUAGES)
81
82.po.mo:
83 $(MSGFMT) -o $@ $<
84
85all: $(MOFILES)
86
87first_time:
88 $(XGETTEXT) --default-domain=$(LANGUAGE) \
89 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
90
91$(LANGUAGES):
92 $(XGETTEXT) --default-domain=$(PACKAGE) \
93 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
94 $(MV) $(PACKAGE).po $(PACKAGE).pot
95 $(CP) $@.po $@.po.orig
96 $(MV) $@.po $@.po.old
97 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
98 $(RM) $@.po.old
99
100install:
101 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)
102 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
103 $(CP) $(LANGUAGE).mo $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES\$(PACKAGE).mo
104
105clean:
106 $(RM) *.mo
107 $(RM) *.pot
108
109