annotate src/po/Make_mvc.mak @ 169:0e902b8f511f v7.0051

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