diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-11 15:25:40 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-11 15:25:40 +0200 |
commit | 26096cc96fc402db45948b3b662a380281585649 (patch) | |
tree | 83c6e9aab5786a7c17674d68b121d227fdafaee3 /src/po | |
parent | 730f48fe3691dc62331f3df23cb947bfc33a5add (diff) | |
download | vim-git-26096cc96fc402db45948b3b662a380281585649.tar.gz |
patch 8.1.1149: building desktop files fails with older msgfmtv8.1.1149
Problem: Building desktop files fails with older msgfmt.
Solution: Add autoconf check. Avoid always building the desktop files.
Diffstat (limited to 'src/po')
-rw-r--r-- | src/po/Make_all.mak | 43 | ||||
-rw-r--r-- | src/po/Makefile | 7 |
2 files changed, 45 insertions, 5 deletions
diff --git a/src/po/Make_all.mak b/src/po/Make_all.mak index e16b9acf2..c179de1ca 100644 --- a/src/po/Make_all.mak +++ b/src/po/Make_all.mak @@ -45,6 +45,49 @@ LANGUAGES = \ zh_TW.UTF-8 \ +POFILES = \ + af.po \ + ca.po \ + cs.po \ + cs.cp1250.po \ + da.po \ + de.po \ + en_GB.po \ + eo.po \ + es.po \ + fi.po \ + fr.po \ + ga.po \ + it.po \ + ja.po \ + ja.euc-jp.po \ + ja.sjis.po \ + ko.po \ + ko.UTF-8.po \ + lv.po \ + nb.po \ + nl.po \ + no.po \ + pl.po \ + pl.UTF-8.po \ + pl.cp1250.po \ + pt_BR.po \ + ru.po \ + ru.cp1251.po \ + sk.po \ + sk.cp1250.po \ + sr.po \ + sv.po \ + uk.po \ + uk.cp1251.po \ + vi.po \ + zh_CN.po \ + zh_CN.UTF-8.po \ + zh_CN.cp936.po \ + zh_TW.po \ + zh_TW.UTF-8.po \ + + MOFILES = \ af.mo \ ca.mo \ diff --git a/src/po/Makefile b/src/po/Makefile index 70f7fc836..82477cd17 100644 --- a/src/po/Makefile +++ b/src/po/Makefile @@ -25,9 +25,6 @@ MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge .SUFFIXES: .po .mo .pot .ck .PHONY: all install uninstall prefixcheck converted check clean checkclean distclean update-po $(LANGUAGES) -LINGUAS: - @echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS - .po.mo: $(MSGFMTCMD) -o $@ $< @@ -35,7 +32,7 @@ LINGUAS: $(VIM) -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq $< touch $@ -all: $(MOFILES) $(MOCONVERTED) gvim.desktop vim.desktop +all: $(MOFILES) $(MOCONVERTED) $(MSGFMT_DESKTOP) check: $(CHECKFILES) @@ -167,7 +164,7 @@ $(PACKAGE).pot: ../*.c ../if_perl.xs ../GvimExt/gvimext.cpp ../globals.h ../if_p po/gvim.desktop.in po/vim.desktop.in mv -f ../$(PACKAGE).po $(PACKAGE).pot -%.desktop: %.desktop.in $(PACKAGE).pot LINGUAS +%.desktop: %.desktop.in $(POFILES) $(MSGFMT) --desktop -d . --template $< -o $@ cp -f $@ ../../runtime/$@ |