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