Mercurial > vim
changeset 35966:3e49acf4ccd8
runtime(lang): update Makefile and make it portable between GNU and BSD
Commit: https://github.com/vim/vim/commit/5f995c92e7658acd16f73c6f6c5a2b9c2e0bdbcd
Author: RestorerZ <restorer@mail2k.ru>
Date: Thu Aug 15 21:43:56 2024 +0200
runtime(lang): update Makefile and make it portable between GNU and BSD
by removing the non-portable GNU variable and using $? instead
Note: this only works for rules with single dependencies.
closes: #15503
Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 15 Aug 2024 22:00:03 +0200 |
parents | a033a4a5847f |
children | 0c60c61e8fed |
files | runtime/lang/Makefile |
diffstat | 1 files changed, 46 insertions(+), 46 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/lang/Makefile +++ b/runtime/lang/Makefile @@ -13,34 +13,34 @@ all: $(CONVERTED) # Convert menu_zh_cn.utf-8.vim to create menu_chinese_gb.936.vim. menu_chinese_gb.936.vim: menu_zh_cn.utf-8.vim rm -f $@ - iconv -f UTF-8 -t CP936 $< | \ + iconv -f UTF-8 -t CP936 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp936/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_zh_tw.utf-8.vim to create menu_chinese_taiwan.950.vim. menu_chinese_taiwan.950.vim: menu_zh_tw.utf-8.vim rm -f $@ - iconv -f UTF-8 -t CP950 $< | \ + iconv -f UTF-8 -t CP950 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp950/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_cs_cz.utf-8.vim to create menu_cs_cz.iso_8859-2.vim. menu_cs_cz.iso_8859-2.vim: menu_cs_cz.utf-8.vim rm -f $@ - iconv -f UTF-8 -t ISO-8859-2 $< | \ + iconv -f UTF-8 -t ISO-8859-2 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ -e 's/\(" Menu Translations:.*\)(.*)/\1(ISO-8859-2)/' \ > $@ # Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.1250.vim. menu_czech_czech_republic.1250.vim: menu_cs_cz.utf-8.vim rm -f $@ - iconv -f UTF-8 -t CP1250 $< | \ + iconv -f UTF-8 -t CP1250 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ -e 's/\(" Menu Translations:.*\)(.*)/\1(CP1250)/' \ > $@ @@ -54,107 +54,107 @@ menu_czech_czech_republic.ascii.vim: men -e 's/Ť/T/g' -e 's/ť/t/g' -e 's/Ú/U/g' -e 's/ú/u/g' -e 's/Ů/U/g' \ -e 's/ů/u/g' -e 's/Ý/Y/g' -e 's/ý/y/g' -e 's/Ž/Z/g' -e 's/ž/z/g' \ -e 's/scriptencoding utf-8/scriptencoding latin1/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ -e 's/\(" Menu Translations:.*\)(.*)/\1(ASCII - without diacritics)/' \ - $< > $@ + $? > $@ # Convert menu_ja_jp.utf-8.vim to create menu_ja_jp.euc-jp.vim. menu_ja_jp.euc-jp.vim: menu_ja_jp.utf-8.vim rm -f $@ - iconv -f UTF-8 -t EUC-JP $< | \ + iconv -f UTF-8 -t EUC-JP $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding euc-jp/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ -e 's/\(" Menu Translations:.*\)(.*)/\1(EUC-JP)/' \ > $@ # Convert menu_ja_jp.utf-8.vim to create menu_japanese_japan.932.vim. menu_japanese_japan.932.vim: menu_ja_jp.utf-8.vim rm -f $@ - iconv -f UTF-8 -t CP932 $< | \ + iconv -f UTF-8 -t CP932 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp932/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ -e 's/\(" Menu Translations:.*\)(.*)/\1(CP932)/' \ > $@ # Convert menu_ko_kr.utf-8.vim to create menu_ko_kr.euckr.vim. menu_ko_kr.euckr.vim: menu_ko_kr.utf-8.vim rm -f $@ - iconv -f UTF-8 -t EUC-KR $< | \ + iconv -f UTF-8 -t EUC-KR $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding euc-kr/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_pl_pl.utf-8.vim to create menu_pl_pl.iso_8859-2.vim. menu_pl_pl.iso_8859-2.vim: menu_pl_pl.utf-8.vim rm -f $@ - iconv -f UTF-8 -t ISO-8859-2 $< | \ + iconv -f UTF-8 -t ISO-8859-2 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_pl_pl.utf-8.vim to create menu_polish_poland.1250.vim. menu_polish_poland.1250.vim: menu_pl_pl.utf-8.vim rm -f $@ - iconv -f UTF-8 -t CP1250 $< | \ + iconv -f UTF-8 -t CP1250 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.koi8-r.vim. menu_ru_ru.koi8-r.vim: menu_ru_ru.utf-8.vim rm -f $@ - iconv -f UTF-8 -t KOI8-R $< | \ + iconv -f UTF-8 -t KOI8-R $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding koi8-r/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.cp1251.vim. menu_ru_ru.cp1251.vim: menu_ru_ru.utf-8.vim rm -f $@ - iconv -f UTF-8 -t CP1251 $< | \ + iconv -f UTF-8 -t CP1251 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1251/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_sl_si.utf-8.vim to create menu_sl_si.cp1250.vim. menu_sl_si.cp1250.vim: menu_sl_si.utf-8.vim rm -f $@ - iconv -f UTF-8 -t CP1250 $< | \ + iconv -f UTF-8 -t CP1250 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # for naming encodings, see `:h encoding-names` # Convert menu_sl_si.utf-8.vim to create menu_sl_si.latin2.vim. menu_sl_si.latin2.vim: menu_sl_si.utf-8.vim rm -f $@ - iconv -f UTF-8 -t ISO-8859-2 $< | \ + iconv -f UTF-8 -t ISO-8859-2 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.cp1254.vim. menu_tr_tr.cp1254.vim: menu_tr_tr.utf-8.vim rm -f $@ - iconv -f UTF-8 -t CP1254 $< | \ + iconv -f UTF-8 -t CP1254 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1254/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.iso_8859-9.vim. menu_tr_tr.iso_8859-9.vim: menu_tr_tr.utf-8.vim rm -f $@ - iconv -f UTF-8 -t ISO-8859-9 $< | \ + iconv -f UTF-8 -t ISO-8859-9 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-9/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-5.vim. menu_sr_rs.iso_8859-5.vim: menu_sr_rs.utf-8.vim rm -f $@ - iconv -f UTF-8 -t ISO-8859-5 $< | \ + iconv -f UTF-8 -t ISO-8859-5 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-5/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # for naming encodings, see `:h encoding-names` @@ -174,8 +174,8 @@ menu_sr_rs.iso_8859-2.vim: menu_sr_rs.ut -e 's/С/S/g' -e 's/Т/T/g' -e 's/Ћ/Ć/g' -e 's/У/U/g' -e 's/Ф/F/g' \ -e 's/Х/H/g' -e 's/Ц/C/g' -e 's/Ч/Č/g' -e 's/Џ/Dž/g' -e 's/Ш/Š/g' \ -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ - $< | iconv -f UTF-8 -t ISO-8859-2 \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ + $? | iconv -f UTF-8 -t ISO-8859-2 \ > $@ # Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.ascii.vim. @@ -194,39 +194,39 @@ menu_sr_rs.ascii.vim: menu_sr_rs.utf-8.v -e 's/С/S/g' -e 's/Т/T/g' -e 's/Ћ/C/g' -e 's/У/U/g' -e 's/Ф/F/g' \ -e 's/Х/H/g' -e 's/Ц/C/g' -e 's/Ч/C/g' -e 's/Џ/Dz/g' -e 's/Ш/S/g' \ -e 's/scriptencoding utf-8/scriptencoding latin1/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ - $< > $@ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ + $? > $@ # Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.cp1251.vim. menu_uk_ua.cp1251.vim: menu_uk_ua.utf-8.vim rm -f $@ - iconv -f UTF-8 -t CP1251 $< | \ + iconv -f UTF-8 -t CP1251 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1251/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.koi8-u.vim. menu_uk_ua.koi8-u.vim: menu_uk_ua.utf-8.vim rm -f $@ - iconv -f UTF-8 -t KOI8-U $< | \ + iconv -f UTF-8 -t KOI8-U $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding koi8-u/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_hu_hu.utf-8.vim to create menu_hu_hu.iso_8859-2.vim. menu_hu_hu.iso_8859-2.vim: menu_hu_hu.utf-8.vim rm -f $@ - iconv -f UTF-8 -t ISO-8859-2 $< | \ + iconv -f UTF-8 -t ISO-8859-2 $? | \ $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ # Convert menu_slovak_slovak_republic.1250.vim to create menu_sk_sk.iso_8859-2.vim. menu_sk_sk.iso_8859-2.vim: menu_slovak_slovak_republic.1250.vim rm -f $@ - iconv -f CP1250 -t ISO-8859-2 $< | \ + iconv -f CP1250 -t ISO-8859-2 $? | \ $(SED) -e 's/scriptencoding cp1250/scriptencoding iso-8859-2/' \ - -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \ + -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ > $@ clean: