1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
|
# Makefile for the Vim tutor.
#
# Use the UTF-8 version as the original and create the others with conversion.
# For some translation files of chapter one, conversion from traditional
# encodings to UTF-8 encoding is performed.
# Common components
include Make_all.mak
.PHONY: all clean
.SUFFIXES:
all: $(CONVERTED)
tutor1.utf-8: tutor1
iconv -f ISO-8859-1 -t UTF-8 $? >$@
tutor2: tutor2.utf-8
iconv -f UTF-8 -t ISO-8859-1 $? >$@
tutor1.bar tutor2.bar:
iconv -f UTF-8 -t ISO-8859-1 $@.utf-8 >$@
tutor1.ca.utf-8: tutor1.ca
iconv -f ISO-8859-1 -t UTF-8 $? >$@
tutor2.ca: tutor2.ca.utf-8
iconv -f UTF-8 -t ISO-8859-1 $? >$@
tutor1.cs tutor2.cs :
iconv -f UTF-8 -t ISO-8859-2 $@.utf-8 >$@
tutor1.cs.cp1250 tutor2.cs.cp1250 :
iconv -f UTF-8 -t CP1250 $(@:.cp1250=).utf-8 >$@
tutor1.da tutor2.da :
iconv -f UTF-8 -t ISO-8859-4 $@.utf-8 >$@
tutor1.de.utf-8: tutor1.de
iconv -f ISO-8859-1 -t UTF-8 $? >$@
tutor2.de: tutor2.de.utf-8
iconv -f UTF-8 -t ISO-8859-1 $? >$@
tutor1.el tutor2.el:
iconv -f UTF-8 -t ISO-8859-7 $@.utf-8 >$@
tutor1.el.cp737 tutor2.el.cp737:
iconv -f UTF-8 -t CP737 $(@:.cp737=.utf-8) >$@
tutor1.eo tutor2.eo:
iconv -f UTF-8 -t ISO-8859-3 $@.utf-8 >$@
tutor1.es tutor2.es:
iconv -f UTF-8 -t ISO-8859-1 $@.utf-8 >$@
tutor1.fr.utf-8: tutor1.fr
iconv -f ISO-8859-1 -t UTF-8 $? >$@
tutor2.fr: tutor2.fr.utf-8
iconv -f UTF-8 -t ISO-8859-1 $? >$@
tutor1.hr tutor2.hr:
iconv -f UTF-8 -t ISO-8859-2 $@.utf-8 >$@
tutor1.hr.cp1250 tutor2.hr.cp1250:
iconv -f UTF-8 -t CP1250 $(@:.cp1250=.utf-8) >$@
tutor1.hu tutor2.hu:
iconv -f UTF-8 -t ISO-8859-2 $@.utf-8 >$@
tutor1.hu.cp1250 tutor2.hu.cp1250:
iconv -f UTF-8 -t CP1250 $(@:.cp1250=.utf-8) >$@
tutor1.it.utf-8: tutor1.it
iconv -f ISO-8859-1 -t UTF-8 $? >$@
tutor2.it: tutor2.it.utf-8
iconv -f UTF-8 -t ISO-8859-1 $? >$@
tutor1.ja.sjis tutor2.ja.sjis:
iconv -f UTF-8 -t CP932 $(@:.sjis=.utf-8) >$@
tutor1.ja.euc tutor2.ja.euc:
iconv -f UTF-8 -t EUC-JP $(@:.euc=.utf-8) >$@
tutor1.ko tutor2.ko:
ln $@.utf-8 $@
tutor1.ko.euc tutor2.ko.euc:
iconv -f UTF-8 -t EUC-KR $(@:.euc=.utf-8) >$@
tutor1.nl tutor2.nl:
iconv -f UTF-8 -t ISO-8859-1 $@.utf-8 >$@
tutor1.no.utf-8: tutor1.no
iconv -f ISO-8859-1 -t UTF-8 $? >$@
tutor2.no: tutor2.no.utf-8
iconv -f UTF-8 -t ISO-8859-1 $? >$@
# nb is an alias for no
tutor1.nb tutor2.nb:
ln $(@:.nb=.no) $@
tutor1.nb.utf-8 tutor2.nb.utf-8:
ln $(@:.nb.utf-8=.no.utf-8) $@
tutor1.pl tutor2.pl :
iconv -f UTF-8 -t ISO-8859-2 $@.utf-8 >$@
tutor1.pl.cp1250 tutor2.pl.cp1250 :
iconv -f UTF-8 -t CP1250 $(@:.cp1250=).utf-8 >$@
tutor1.pt tutor2.pt :
iconv -f UTF-8 -t ISO-8859-15 $@.utf-8 >$@
tutor1.ru tutor2.ru:
iconv -f UTF-8 -t KOI8-R $@.utf-8 >$@
tutor1.ru.cp1251 tutor2.ru.cp1251:
iconv -f UTF-8 -t CP1251 $(@:.cp1251=.utf-8) >$@
tutor1.sk tutor2.sk :
iconv -f UTF-8 -t ISO-8859-2 $@.utf-8 >$@
tutor1.sk.cp1250 tutor2.sk.cp1250 :
iconv -f UTF-8 -t CP1250 $(@:.cp1250=).utf-8 >$@
tutor1.sr.cp1250 tutor2.sr.cp1250 :
iconv -f UTF-8 -t CP1250 $(@:.cp1250=).utf-8 >$@
tutor1.sv.utf-8: tutor1.sv
iconv -f ISO-8859-15 -t UTF-8 $? >$@
tutor2.sv: tutor2.sv.utf-8
iconv -f UTF-8 -t ISO-8859-15 $? >$@
tutor1.tr.iso9 tutor2.tr.iso9:
iconv -f UTF-8 -t ISO-8859-9 $(@:.iso9=.utf-8) >$@
tutor1.zh.utf-8: tutor1.zh.big5
iconv -f BIG-5 -t UTF-8 -c $? >$@
tutor2.zh.big5: tutor2.zh.utf-8
iconv -f UTF-8 -t BIG-5 -c $? >$@
clean:
for G in $(CONVERTED); do if [ -f ./$$G ]; then rm -f ./$$G; fi; done;
|