blob: 064aa3ebf3a4e95fa2fc7f1f8d9caea7fd6fa44e [file] [log] [blame]
Restorer424da592023-11-11 18:26:00 +00001#
2# Makefile for the Vim documentation on Windows
3#
Restorer74a23312024-03-28 09:19:44 +00004# 20.03.24, Restorer, <restorer@mail2k.ru>
Restorer424da592023-11-11 18:26:00 +00005
6# Common components
7!INCLUDE Make_all.mak
8
9
10# TODO: to think about what to use instead of awk. PowerShell?
11#AWK =
12
zeertzjq7c515282024-11-10 20:26:12 +010013# Correct the following line for the where executable file vim is installed.
Restorer8c14e792023-11-25 14:39:51 +000014# Please do not put the path in quotes.
RestorerZ2730d382025-01-17 14:04:44 +010015VIMPROG = ..\..\src\vim.exe
Restorer424da592023-11-11 18:26:00 +000016
Restorer8c14e792023-11-25 14:39:51 +000017# Correct the following line for the directory where iconv installed.
18# Please do not put the path in quotes.
19ICONV_PATH = D:\Programs\GetText\bin
Restorer424da592023-11-11 18:26:00 +000020
21# In case some package like GnuWin32, UnixUtils
22# or something similar is installed on the system.
23# If the "touch" program is installed on the system, but it is not registered
24# in the %PATH% environment variable, then specify the full path to this file.
25!IF EXIST ("touch.exe")
Restorer74a23312024-03-28 09:19:44 +000026TOUCH = touch.exe %1
Restorer424da592023-11-11 18:26:00 +000027!ELSE
Restorer8c14e792023-11-25 14:39:51 +000028TOUCH = if exist %1 ( copy /b %1+,, ) else ( type nul >%1 )
Restorer424da592023-11-11 18:26:00 +000029!ENDIF
30
31# In case some package like GnuWin32, UnixUtils, gettext
32# or something similar is installed on the system.
33# If the "iconv" program is installed on the system, but it is not registered
34# in the %PATH% environment variable, then specify the full path to this file.
35!IF EXIST ("iconv.exe")
Restorer74a23312024-03-28 09:19:44 +000036ICONV = iconv.exe
Restorer8c14e792023-11-25 14:39:51 +000037!ELSEIF EXIST ("$(ICONV_PATH)\iconv.exe")
38ICONV = "$(ICONV_PATH)\iconv.exe"
Restorer424da592023-11-11 18:26:00 +000039!ENDIF
40
41RM = del /q
Restorer459867b2024-01-22 22:42:44 +030042PS = PowerShell.exe
43
44PSFLAGS = -NoLogo -NoProfile -Command
Restorer424da592023-11-11 18:26:00 +000045
46.SUFFIXES :
47.SUFFIXES : .c .o .txt .html
48
49
50all : tags perlhtml $(CONVERTED)
51
52# Use "doctags" to generate the tags file. Only works for English!
53tags : doctags $(DOCS)
Restorer8c14e792023-11-25 14:39:51 +000054 doctags.exe $(DOCS) | sort /L C /O tags
Restorer459867b2024-01-22 22:42:44 +030055 $(PS) $(PSFLAGS) \
Restorer74a23312024-03-28 09:19:44 +000056 (Get-Content -Raw tags ^| Get-Unique ^| %%{$$_ -replace \"`r\", \"\"}) \
RestorerZ2730d382025-01-17 14:04:44 +010057 ^| New-Item -Path . -Name tags -ItemType file -Force
Restorer424da592023-11-11 18:26:00 +000058
59doctags : doctags.c
60 $(CC) doctags.c
61
62
63# Use Vim to generate the tags file. Can only be used when Vim has been
64# compiled and installed. Supports multiple languages.
65vimtags : $(DOCS)
RestorerZcd33faf2024-07-04 17:47:16 +020066 @"$(VIMPROG)" --clean -esX -V1 -u doctags.vim
Restorer424da592023-11-11 18:26:00 +000067
Restorer424da592023-11-11 18:26:00 +000068# TODO:
69#html: noerrors tags $(HTMLS)
70# if exist errors.log (more errors.log)
71
72# TODO:
73#noerrors:
74# $(RM) errors.log
75
76# TODO:
77#.txt.html:
78
79
80# TODO:
81#index.html: help.txt
82
83
84# TODO:
85#vimindex.html: index.txt
86
87
88# TODO:
89#tags.ref tags.html: tags
90
91# Perl version of .txt to .html conversion.
92# There can't be two rules to produce a .html from a .txt file.
93# Just run over all .txt files each time one changes. It's fast anyway.
94perlhtml : tags $(DOCS)
95 vim2html.pl tags $(DOCS)
96
97# Check URLs in the help with "curl" or "powershell".
98test_urls :
RestorerZcd33faf2024-07-04 17:47:16 +020099 "$(VIMPROG)" --clean -S test_urls.vim
Restorer424da592023-11-11 18:26:00 +0000100
101clean :
RestorerZ2730d382025-01-17 14:04:44 +0100102 - $(RM) doctags.exe doctags.obj
103 - $(RM) *.html vim-stylesheet.css
Restorer424da592023-11-11 18:26:00 +0000104
105
Restorer424da592023-11-11 18:26:00 +0000106arabic.txt :
Restorer8c14e792023-11-25 14:39:51 +0000107 <<touch.bat $@
108@$(TOUCH)
109<<
Restorer424da592023-11-11 18:26:00 +0000110
111farsi.txt :
Restorer8c14e792023-11-25 14:39:51 +0000112 <<touch.bat $@
113@$(TOUCH)
114<<
Restorer424da592023-11-11 18:26:00 +0000115
116hebrew.txt :
Restorer8c14e792023-11-25 14:39:51 +0000117 <<touch.bat $@
118@$(TOUCH)
119<<
Restorer424da592023-11-11 18:26:00 +0000120
121russian.txt :
Restorer8c14e792023-11-25 14:39:51 +0000122 <<touch.bat $@
123@$(TOUCH)
124<<
Restorer424da592023-11-11 18:26:00 +0000125
126gui_w32.txt :
Restorer8c14e792023-11-25 14:39:51 +0000127 <<touch.bat $@
128@$(TOUCH)
129<<
Restorer424da592023-11-11 18:26:00 +0000130
131if_ole.txt :
Restorer8c14e792023-11-25 14:39:51 +0000132 <<touch.bat $@
133@$(TOUCH)
134<<
Restorer424da592023-11-11 18:26:00 +0000135
136os_390.txt :
Restorer8c14e792023-11-25 14:39:51 +0000137 <<touch.bat $@
138@$(TOUCH)
139<<
Restorer424da592023-11-11 18:26:00 +0000140
141os_amiga.txt :
Restorer8c14e792023-11-25 14:39:51 +0000142 <<touch.bat $@
143@$(TOUCH)
144<<
Restorer424da592023-11-11 18:26:00 +0000145
146os_beos.txt :
Restorer8c14e792023-11-25 14:39:51 +0000147 <<touch.bat $@
148@$(TOUCH)
149<<
Restorer424da592023-11-11 18:26:00 +0000150
151os_dos.txt :
Restorer8c14e792023-11-25 14:39:51 +0000152 <<touch.bat $@
153@$(TOUCH)
154<<
Restorer424da592023-11-11 18:26:00 +0000155
156os_haiku.txt :
Restorer8c14e792023-11-25 14:39:51 +0000157 <<touch.bat $@
158@$(TOUCH)
159<<
Restorer424da592023-11-11 18:26:00 +0000160
161os_mac.txt :
Restorer8c14e792023-11-25 14:39:51 +0000162 <<touch.bat $@
163@$(TOUCH)
164<<
Restorer424da592023-11-11 18:26:00 +0000165
166os_mint.txt :
Restorer8c14e792023-11-25 14:39:51 +0000167 <<touch.bat $@
168@$(TOUCH)
169<<
Restorer424da592023-11-11 18:26:00 +0000170
171os_msdos.txt :
Restorer8c14e792023-11-25 14:39:51 +0000172 <<touch.bat $@
173@$(TOUCH)
174<<
Restorer424da592023-11-11 18:26:00 +0000175
176os_os2.txt :
Restorer8c14e792023-11-25 14:39:51 +0000177 <<touch.bat $@
178@$(TOUCH)
179<<
Restorer424da592023-11-11 18:26:00 +0000180
181os_qnx.txt :
Restorer8c14e792023-11-25 14:39:51 +0000182 <<touch.bat $@
183@$(TOUCH)
184<<
Restorer424da592023-11-11 18:26:00 +0000185
186os_risc.txt :
Restorer8c14e792023-11-25 14:39:51 +0000187 <<touch.bat $@
188@$(TOUCH)
189<<
Restorer424da592023-11-11 18:26:00 +0000190
191os_win32.txt :
Restorer8c14e792023-11-25 14:39:51 +0000192 <<touch.bat $@
193@$(TOUCH)
194<<
Restorer424da592023-11-11 18:26:00 +0000195
196convert-all : $(CONVERTED)
Restorer459867b2024-01-22 22:42:44 +0300197!IF [$(PS) $(PSFLAGS) "exit $$psversiontable.psversion.major"] == 2
Restorer424da592023-11-11 18:26:00 +0000198!ERROR The program "PowerShell" version 3.0 or higher is required to work
199!ENDIF
200
201vim-da.UTF-8.1 : vim-da.1
202!IF DEFINED (ICONV)
203 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
204!ELSE
205# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300206 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000207 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
208 1>nul New-Item -Force -Path . -ItemType file -Name $@
209!ENDIF
210
211vimdiff-da.UTF-8.1 : vimdiff-da.1
212!IF DEFINED (ICONV)
213 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
214!ELSE
215# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300216 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000217 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
218 1>nul New-Item -Force -Path . -ItemType file -Name $@
219!ENDIF
220
221vimtutor-da.UTF-8.1 : vimtutor-da.1
222!IF DEFINED (ICONV)
223 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
224!ELSE
225# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300226 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000227 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
228 1>nul New-Item -Force -Path . -ItemType file -Name $@
229!ENDIF
230
231vim-de.UTF-8.1 : vim-de.1
232!IF DEFINED (ICONV)
233 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
234!ELSE
235# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300236 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000237 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
238 1>nul New-Item -Force -Path . -ItemType file -Name $@
239!ENDIF
240
241evim-fr.UTF-8.1 : evim-fr.1
242!IF DEFINED (ICONV)
243 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
244!ELSE
245# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300246 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000247 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
248 1>nul New-Item -Force -Path . -ItemType file -Name $@
249!ENDIF
250
251vim-fr.UTF-8.1 : vim-fr.1
252!IF DEFINED (ICONV)
253 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
254!ELSE
255# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300256 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000257 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
258 1>nul New-Item -Force -Path . -ItemType file -Name $@
259!ENDIF
260
261vimdiff-fr.UTF-8.1 : vimdiff-fr.1
262!IF DEFINED (ICONV)
263 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
264!ELSE
265# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300266 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000267 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
268 1>nul New-Item -Force -Path . -ItemType file -Name $@
269!ENDIF
270
271vimtutor-fr.UTF-8.1 : vimtutor-fr.1
272!IF DEFINED (ICONV)
273 $(ICONV) -f ISO-8859-1 -t utf-8 $? >$@
274!ELSE
275# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300276 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000277 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
278 1>nul New-Item -Force -Path . -ItemType file -Name $@
279!ENDIF
280
281xxd-fr.UTF-8.1 : xxd-fr.1
282!IF DEFINED (ICONV)
283 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
284!ELSE
285# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300286 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000287 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
288 1>nul New-Item -Force -Path . -ItemType file -Name $@
289!ENDIF
290
291evim-it.UTF-8.1 : evim-it.1
292!IF DEFINED (ICONV)
293 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
294!ELSE
295# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300296 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000297 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
298 1>nul New-Item -Force -Path . -ItemType file -Name $@
299!ENDIF
300
301vim-it.UTF-8.1 : vim-it.1
302!IF DEFINED (ICONV)
303 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
304!ELSE
305# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300306 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000307 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
308 1>nul New-Item -Force -Path . -ItemType file -Name $@
309!ENDIF
310
311vimdiff-it.UTF-8.1 : vimdiff-it.1
312!IF DEFINED (ICONV)
313 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
314!ELSE
315# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300316 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000317 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
318 1>nul New-Item -Force -Path . -ItemType file -Name $@
319!ENDIF
320
321vimtutor-it.UTF-8.1 : vimtutor-it.1
322!IF DEFINED (ICONV)
323 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
324!ELSE
325# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300326 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000327 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
328 1>nul New-Item -Force -Path . -ItemType file -Name $@
329!ENDIF
330
331xxd-it.UTF-8.1 : xxd-it.1
332!IF DEFINED (ICONV)
333 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
334!ELSE
335# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300336 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000337 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
338 1>nul New-Item -Force -Path . -ItemType file -Name $@
339!ENDIF
340
341evim-pl.UTF-8.1 : evim-pl.1
342!IF DEFINED (ICONV)
343 $(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
344!ELSE
345# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300346 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000347 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
348 1>nul New-Item -Force -Path . -ItemType file -Name $@
349!ENDIF
350
351vim-pl.UTF-8.1 : vim-pl.1
352!IF DEFINED (ICONV)
353 $(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
354!ELSE
355# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300356 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000357 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
358 1>nul New-Item -Force -Path . -ItemType file -Name $@
359!ENDIF
360
361vimdiff-pl.UTF-8.1 : vimdiff-pl.1
362!IF DEFINED (ICONV)
363 $(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
364!ELSE
365# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300366 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000367 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
368 1>nul New-Item -Force -Path . -ItemType file -Name $@
369!ENDIF
370
371vimtutor-pl.UTF-8.1 : vimtutor-pl.1
372!IF DEFINED (ICONV)
373 $(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
374!ELSE
375# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300376 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000377 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
378 1>nul New-Item -Force -Path . -ItemType file -Name $@
379!ENDIF
380
381xxd-pl.UTF-8.1 : xxd-pl.1
382!IF DEFINED (ICONV)
383 $(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
384!ELSE
385# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300386 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000387 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
388 1>nul New-Item -Force -Path . -ItemType file -Name $@
389!ENDIF
390
391evim-ru.UTF-8.1 : evim-ru.1
392!IF DEFINED (ICONV)
393 $(ICONV) -f KOI8-R -t UTF-8 $? >$@
394!ELSE
395# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300396 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000397 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
398 1>nul New-Item -Force -Path . -ItemType file -Name $@
399!ENDIF
400
401vim-ru.UTF-8.1 : vim-ru.1
402!IF DEFINED (ICONV)
403 $(ICONV) -f KOI8-R -t UTF-8 $? >$@
404!ELSE
405# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300406 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000407 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
408 1>nul New-Item -Force -Path . -ItemType file -Name $@
409!ENDIF
410
411vimdiff-ru.UTF-8.1 : vimdiff-ru.1
412!IF DEFINED (ICONV)
413 $(ICONV) -f KOI8-R -t UTF-8 $? >$@
414!ELSE
415# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300416 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000417 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
418 1>nul New-Item -Force -Path . -ItemType file -Name $@
419!ENDIF
420
421vimtutor-ru.UTF-8.1 : vimtutor-ru.1
422!IF DEFINED (ICONV)
423 $(ICONV) -f KOI8-R -t UTF-8 $? >$@
424!ELSE
425# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300426 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000427 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
428 1>nul New-Item -Force -Path . -ItemType file -Name $@
429!ENDIF
430
431xxd-ru.UTF-8.1 : xxd-ru.1
432!IF DEFINED (ICONV)
433 $(ICONV) -f KOI8-R -t UTF-8 $? >$@
434!ELSE
435# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300436 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000437 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
438 1>nul New-Item -Force -Path . -ItemType file -Name $@
439!ENDIF
440
441evim-tr.UTF-8.1 : evim-tr.1
442!IF DEFINED (ICONV)
443 $(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
444!ELSE
445# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300446 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000447 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
448 1>nul New-Item -Force -Path . -ItemType file -Name $@
449!ENDIF
450
451vim-tr.UTF-8.1 : vim-tr.1
452!IF DEFINED (ICONV)
453 $(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
454!ELSE
455# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300456 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000457 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
458 1>nul New-Item -Force -Path . -ItemType file -Name $@
459!ENDIF
460
461vimdiff-tr.UTF-8.1 : vimdiff-tr.1
462!IF DEFINED (ICONV)
463 $(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
464!ELSE
465# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300466 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000467 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
468 1>nul New-Item -Force -Path . -ItemType file -Name $@
469!ENDIF
470
471vimtutor-tr.UTF-8.1 : vimtutor-tr.1
472!IF DEFINED (ICONV)
473 $(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
474!ELSE
475# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300476 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000477 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
478 1>nul New-Item -Force -Path . -ItemType file -Name $@
479!ENDIF
480
Restorer424da592023-11-11 18:26:00 +0000481# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0 ft=make: