annotate src/po/Makefile @ 20986:9dccf57e918a v8.2.1044

patch 8.2.1044: not all systemd file types are recognized Commit: https://github.com/vim/vim/commit/ef6d86c173becdf82b7a9a1329342c9368340def Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 23 21:01:38 2020 +0200 patch 8.2.1044: not all systemd file types are recognized Problem: Not all systemd file types are recognized. Solution: Match several more files. (Guido Cella, closes https://github.com/vim/vim/issues/6319)
author Bram Moolenaar <Bram@vim.org>
date Tue, 23 Jun 2020 21:15:04 +0200
parents daa71bf6b546
children 52e970719f4b
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.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
5962
fd96c55d683d updated for version 7.4.322
Bram Moolenaar <bram@vim.org>
parents: 4502
diff changeset
3 # Include stuff found by configure.
fd96c55d683d updated for version 7.4.322
Bram Moolenaar <bram@vim.org>
parents: 4502
diff changeset
4 include ../auto/config.mk
fd96c55d683d updated for version 7.4.322
Bram Moolenaar <bram@vim.org>
parents: 4502
diff changeset
5
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
6 # get LANGUAGES, MOFILES, MOCONVERTED and CHECKFILES
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
7 include Make_all.mak
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
8
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 # Note: ja.sjis, *.cp1250 and zh_CN.cp936 are only for MS-Windows, they are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 # not installed on Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 PACKAGE = vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 SHELL = /bin/sh
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
14 VIM = ../vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 # The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 # tools 0.10.37, which use a slightly different .po file format that is not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 # compatible with Solaris (and old gettext implementations) unless these are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 # set. gettext 0.10.36 will not work!
5962
fd96c55d683d updated for version 7.4.322
Bram Moolenaar <bram@vim.org>
parents: 4502
diff changeset
20 MSGFMTCMD = OLD_PO_FILE_INPUT=yes $(MSGFMT) -v
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes xgettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 .SUFFIXES:
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
25 .SUFFIXES: .po .mo .pot .ck
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
26 .PHONY: all install uninstall prefixcheck converted check clean checkclean distclean update-po $(LANGUAGES)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 .po.mo:
5962
fd96c55d683d updated for version 7.4.322
Bram Moolenaar <bram@vim.org>
parents: 4502
diff changeset
29 $(MSGFMTCMD) -o $@ $<
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
31 .po.ck:
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
32 $(VIM) -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq $<
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
33 touch $@
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
34
16289
b4c7e026685c patch 8.1.1149: building desktop files fails with older msgfmt
Bram Moolenaar <Bram@vim.org>
parents: 16285
diff changeset
35 all: $(MOFILES) $(MOCONVERTED) $(MSGFMT_DESKTOP)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
37 check: $(CHECKFILES)
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
38
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
39 install: $(MOFILES) $(MOCONVERTED)
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
40 @$(MAKE) prefixcheck
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
41 for lang in $(LANGUAGES); do \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 dir=$(LOCALEDIR)/$$lang/; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 if test ! -x "$$dir"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 mkdir $$dir; chmod 755 $$dir; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 if test ! -x "$$dir"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 mkdir $$dir; chmod 755 $$dir; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 if test -r $$lang.mo; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 $(INSTALL_DATA) $$lang.mo $$dir/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 chmod $(FILEMOD) $$dir/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 uninstall:
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
57 @$(MAKE) prefixcheck
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
58 for cat in $(MOFILES) $(MOCONVERTED); do \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 cat=`basename $$cat`; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 rm -f $(LOCALEDIR)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
64 converted: $(MOCONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
4340
12636b824816 updated for version 7.3.919
Bram Moolenaar <bram@vim.org>
parents: 4067
diff changeset
66 # nl.po was added later, if it does not exist use a file with just a # in it
12636b824816 updated for version 7.3.919
Bram Moolenaar <bram@vim.org>
parents: 4067
diff changeset
67 # (an empty file doesn't work with old msgfmt).
4067
386fc822dd00 updated for version 7.3.788
Bram Moolenaar <bram@vim.org>
parents: 4019
diff changeset
68 nl.po:
4340
12636b824816 updated for version 7.3.919
Bram Moolenaar <bram@vim.org>
parents: 4067
diff changeset
69 @( echo \# > nl.po )
4067
386fc822dd00 updated for version 7.3.788
Bram Moolenaar <bram@vim.org>
parents: 4019
diff changeset
70
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
71 # Norwegian/Bokmal: "nb" is an alias for "no".
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
72 # Copying the file is not efficient, but I don't know of another way to make
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
73 # this work.
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
74 nb.po: no.po
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
75 cp no.po nb.po
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
76
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 # Convert ja.po to create ja.sjis.po. Requires doubling backslashes in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 # second byte. Don't depend on sjiscorr, it should only be compiled when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 # ja.sjis.po is outdated.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 ja.sjis.po: ja.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 @$(MAKE) sjiscorr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 rm -f ja.sjis.po
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
83 iconv -f utf-8 -t cp932 ja.po | ./sjiscorr > ja.sjis.po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 sjiscorr: sjiscorr.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 $(CC) -o sjiscorr sjiscorr.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
88 ja.euc-jp.po: ja.po
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
89 iconv -f utf-8 -t euc-jp ja.po | \
14187
b79453d0d01c patch 8.1.0111: .po files do not use recommended names
Christian Brabandt <cb@256bit.org>
parents: 14181
diff changeset
90 sed -e 's/charset=[uU][tT][fF]-8/charset=euc-jp/' -e 's/# Original translations/# Generated from ja.po, DO NOT EDIT/' > ja.euc-jp.po
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
91
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 # Convert cs.po to create cs.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 cs.cp1250.po: cs.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 rm -f cs.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 iconv -f iso-8859-2 -t cp1250 cs.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from cs.po, DO NOT EDIT/' > cs.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 # Convert pl.po to create pl.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 pl.cp1250.po: pl.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 rm -f pl.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 iconv -f iso-8859-2 -t cp1250 pl.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
104 # Convert pl.po to create pl.UTF-8.po.
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
105 pl.UTF-8.po: pl.po
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
106 rm -f pl.UTF-8.po
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
107 iconv -f iso-8859-2 -t utf-8 pl.po | \
14187
b79453d0d01c patch 8.1.0111: .po files do not use recommended names
Christian Brabandt <cb@256bit.org>
parents: 14181
diff changeset
108 sed -e 's/charset=ISO-8859-2/charset=UTF-8/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.UTF-8.po
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
109
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 # Convert sk.po to create sk.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 sk.cp1250.po: sk.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 rm -f sk.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 iconv -f iso-8859-2 -t cp1250 sk.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from sk.po, DO NOT EDIT/' > sk.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
10710
4aa22b40321f patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents: 5962
diff changeset
116 # Convert zh_CN.UTF-8.po to create zh_CN.cp936.po.
4aa22b40321f patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents: 5962
diff changeset
117 # Set 'charset' to gbk to avoid that msfmt generates a warning.
4aa22b40321f patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents: 5962
diff changeset
118 # This used to convert from zh_CN.po, but that results in a conversion error.
4aa22b40321f patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents: 5962
diff changeset
119 zh_CN.cp936.po: zh_CN.UTF-8.po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 rm -f zh_CN.cp936.po
10710
4aa22b40321f patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents: 5962
diff changeset
121 iconv -f UTF-8 -t cp936 zh_CN.UTF-8.po | \
14187
b79453d0d01c patch 8.1.0111: .po files do not use recommended names
Christian Brabandt <cb@256bit.org>
parents: 14181
diff changeset
122 sed -e 's/charset=[uU][tT][fF]-8/charset=gbk/' -e 's/# Original translations/# Generated from zh_CN.UTF-8.po, DO NOT EDIT/' > zh_CN.cp936.po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
124 # Convert ko.UTF-8.po to create ko.po.
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
125 ko.po: ko.UTF-8.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
126 rm -f ko.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
127 iconv -f UTF-8 -t euc-kr ko.UTF-8.po | \
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
128 sed -e 's/charset=UTF-8/charset=euc-kr/' \
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
129 -e 's/# Korean translation for Vim/# Generated from ko.UTF-8.po, DO NOT EDIT/' \
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
130 > ko.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
131
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 # Convert ru.po to create ru.cp1251.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 ru.cp1251.po: ru.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 rm -f ru.cp1251.po
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
135 iconv -f utf-8 -t cp1251 ru.po | \
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
136 sed -e 's/charset=[uU][tT][fF]-8/charset=cp1251/' -e 's/# Original translations/# Generated from ru.po, DO NOT EDIT/' > ru.cp1251.po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137
23
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
138 # Convert uk.po to create uk.cp1251.po.
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
139 uk.cp1251.po: uk.po
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
140 rm -f uk.cp1251.po
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
141 iconv -f utf-8 -t cp1251 uk.po | \
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
142 sed -e 's/charset=[uU][tT][fF]-8/charset=cp1251/' -e 's/# Original translations/# Generated from uk.po, DO NOT EDIT/' > uk.cp1251.po
23
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
143
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
144 prefixcheck:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 @if test "x" = "x$(prefix)"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 echo "******************************************"; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 echo " please use make from the src directory "; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 echo "******************************************"; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 exit 1; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 fi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
628
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
152 clean: checkclean
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
153 rm -f core core.* *.old.po *.mo *.pot sjiscorr
16934
87abfb36d815 patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents: 16557
diff changeset
154 rm -f LINGUAS vim.desktop gvim.desktop tmp_*desktop
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 distclean: clean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
628
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
158 checkclean:
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
159 rm -f *.ck
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
160
16285
e71261a88630 patch 8.1.1147: desktop file translations are requiring manual updates
Bram Moolenaar <Bram@vim.org>
parents: 14187
diff changeset
161 $(PACKAGE).pot: ../*.c ../if_perl.xs ../GvimExt/gvimext.cpp ../globals.h ../if_py_both.h ../vim.h gvim.desktop.in vim.desktop.in
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 cd ..; $(XGETTEXT) --default-domain=$(PACKAGE) \
13464
cf04dbb33f41 patch 8.0.1606: singular/plural variants not translated
Christian Brabandt <cb@256bit.org>
parents: 13341
diff changeset
163 --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 \
16285
e71261a88630 patch 8.1.1147: desktop file translations are requiring manual updates
Bram Moolenaar <Bram@vim.org>
parents: 14187
diff changeset
164 *.c if_perl.xs GvimExt/gvimext.cpp globals.h if_py_both.h vim.h \
e71261a88630 patch 8.1.1147: desktop file translations are requiring manual updates
Bram Moolenaar <Bram@vim.org>
parents: 14187
diff changeset
165 po/gvim.desktop.in po/vim.desktop.in
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 mv -f ../$(PACKAGE).po $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167
16503
17f5563d1285 patch 8.1.1255: building desktop files fails on FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 16473
diff changeset
168 vim.desktop: vim.desktop.in $(POFILES)
18664
daa71bf6b546 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16934
diff changeset
169 echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS
16934
87abfb36d815 patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents: 16557
diff changeset
170 $(MSGFMT) --desktop -d . --template vim.desktop.in -o tmp_vim.desktop
16557
86e69ed040e3 patch 8.1.1282: running make in src/po leaves LINGUAS file behind
Bram Moolenaar <Bram@vim.org>
parents: 16503
diff changeset
171 rm -f LINGUAS
16934
87abfb36d815 patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents: 16557
diff changeset
172 if command -v desktop-file-validate; then desktop-file-validate tmp_vim.desktop; fi
87abfb36d815 patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents: 16557
diff changeset
173 mv tmp_vim.desktop vim.desktop
16503
17f5563d1285 patch 8.1.1255: building desktop files fails on FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 16473
diff changeset
174
17f5563d1285 patch 8.1.1255: building desktop files fails on FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 16473
diff changeset
175 gvim.desktop: gvim.desktop.in $(POFILES)
18664
daa71bf6b546 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16934
diff changeset
176 echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS
16934
87abfb36d815 patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents: 16557
diff changeset
177 $(MSGFMT) --desktop -d . --template gvim.desktop.in -o tmp_gvim.desktop
16557
86e69ed040e3 patch 8.1.1282: running make in src/po leaves LINGUAS file behind
Bram Moolenaar <Bram@vim.org>
parents: 16503
diff changeset
178 rm -f LINGUAS
16934
87abfb36d815 patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents: 16557
diff changeset
179 if command -v desktop-file-validate; then desktop-file-validate tmp_gvim.desktop; fi
87abfb36d815 patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents: 16557
diff changeset
180 mv tmp_gvim.desktop gvim.desktop
16285
e71261a88630 patch 8.1.1147: desktop file translations are requiring manual updates
Bram Moolenaar <Bram@vim.org>
parents: 14187
diff changeset
181
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
182 update-po: $(LANGUAGES)
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
183
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 # Don't add a dependency here, we only want to update the .po files manually
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 $(LANGUAGES):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 @$(MAKE) $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 if test ! -f $@.po.orig; then cp $@.po $@.po.orig; fi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 mv $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 if $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 rm -f $@.po.old; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 else \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 echo "msgmerge for $@.po failed!"; mv $@.po.old $@.po; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 fi