7
|
1 # Makefile for the Vim message translations for MSVC
|
|
2 # (based on make_ming.mak)
|
|
3 #
|
|
4 # Mike Williams <mrw@eandem.co.uk>
|
|
5 #
|
|
6 # Please read README_mvc.txt before using this file.
|
|
7 #
|
|
8
|
168
|
9 LANGUAGES = af ca cs de en_GB es fr ga it ja ko no pl ru sk sv uk zh_TW \
|
7
|
10 zh_TW.UTF-8 zh_CN zh_CN.UTF-8
|
168
|
11 MOFILES = af.mo ca.mo cs.mo de.mo en_GB.mo es.mo fr.mo ga.mo it.mo ja.mo \
|
7
|
12 ko.mo no.mo pl.mo ru.mo sk.mo sv.mo uk.mo \
|
|
13 zh_TW.mo zh_TW.UTF-8.mo zh_CN.mo zh_CN.UTF-8.mo
|
|
14
|
|
15 PACKAGE = vim
|
|
16
|
|
17 # Correct the following line for the installation directory of gettext
|
|
18 GETTEXT_PATH = H:\gettext.win32.msvcrt\bin
|
|
19
|
|
20 MSGFMT = $(GETTEXT_PATH)\msgfmt
|
|
21 XGETTEXT = $(GETTEXT_PATH)\xgettext
|
|
22 MSGMERGE = $(GETTEXT_PATH)\msgmerge
|
|
23
|
|
24 MV = move
|
|
25 CP = copy
|
|
26 RM = del
|
|
27 MKD = mkdir
|
|
28 LS = dir
|
|
29
|
|
30 LSFLAGS = /b /on /l /s
|
|
31
|
|
32 INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
|
|
33
|
|
34 .SUFFIXES:
|
|
35 .SUFFIXES: .po .mo .pot
|
|
36
|
|
37 .po.mo:
|
|
38 $(MSGFMT) -o $@ $<
|
|
39
|
|
40 all: $(MOFILES)
|
|
41
|
|
42 files:
|
|
43 $(LS) $(LSFLAGS) ..\*.c ..\if_perl.xs ..\globals.h > .\files
|
|
44
|
|
45 first_time: files
|
|
46 $(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files
|
|
47
|
|
48 $(LANGUAGES): files
|
|
49 $(XGETTEXT) --default-domain=$(PACKAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files
|
|
50 $(MV) $(PACKAGE).po $(PACKAGE).pot
|
|
51 $(CP) $@.po $@.po.orig
|
|
52 $(MV) $@.po $@.po.old
|
|
53 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
|
|
54 $(RM) $@.po.old
|
|
55
|
|
56 install:
|
|
57 if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR)
|
|
58 $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo
|
|
59
|
|
60 clean:
|
|
61 $(RM) *.mo
|
|
62 $(RM) *.pot
|