blob: 850d86bb742054afece72cc1da15118abbfc5cf4 [file] [log] [blame]
Restorer424da592023-11-11 18:26:00 +00001#
2# Makefile for the Vim documentation on Windows
3#
4# 17.11.23, Restorer, <restorer@mail2k.ru>
5
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
Restorer8c14e792023-11-25 14:39:51 +000013# Correct the following line for the where executeable file vim is installed.
14# Please do not put the path in quotes.
Restorer424da592023-11-11 18:26:00 +000015VIMEXE = D:\Programs\Vim\vim90\vim.exe
16
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")
Restorer8c14e792023-11-25 14:39:51 +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")
Restorer8c14e792023-11-25 14:39:51 +000036ICONV = "iconv.exe"
37!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) \
56 (Get-Content -Raw tags ^| Get-Unique ^| %%{$$_ -replace \"`r\", \"\"})\
57 ^| New-Item -Force -Path . -ItemType file -Name tags
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)
Restorer8c14e792023-11-25 14:39:51 +000066 @"$(VIMEXE)" --clean -esX -V1 -u doctags.vim
Restorer424da592023-11-11 18:26:00 +000067
68
Restorer8c14e792023-11-25 14:39:51 +000069uganda.nsis.txt : uganda.???
Restorer459867b2024-01-22 22:42:44 +030070 !@$(PS) $(PSFLAGS) $$ext=(Get-Item $?).Extension; (Get-Content $? ^| \
71 %%{$$_ -replace '\s*\*[-a-zA-Z0-9.]*\*', '' -replace 'vim:tw=78:.*', ''})\
Restorer424da592023-11-11 18:26:00 +000072 ^| Set-Content $*$$ext
Restorer459867b2024-01-22 22:42:44 +030073 !@$(PS) $(PSFLAGS) $$ext=(Get-Item $?).Extension; \
Restorer424da592023-11-11 18:26:00 +000074 (Get-Content -Raw $(@B)$$ext).Trim() -replace '(\r\n){3,}', '$$1$$1' \
75 ^| Set-Content $(@B)$$ext
76
77
78# TODO:
79#html: noerrors tags $(HTMLS)
80# if exist errors.log (more errors.log)
81
82# TODO:
83#noerrors:
84# $(RM) errors.log
85
86# TODO:
87#.txt.html:
88
89
90# TODO:
91#index.html: help.txt
92
93
94# TODO:
95#vimindex.html: index.txt
96
97
98# TODO:
99#tags.ref tags.html: tags
100
101# Perl version of .txt to .html conversion.
102# There can't be two rules to produce a .html from a .txt file.
103# Just run over all .txt files each time one changes. It's fast anyway.
104perlhtml : tags $(DOCS)
105 vim2html.pl tags $(DOCS)
106
107# Check URLs in the help with "curl" or "powershell".
108test_urls :
Restorer459867b2024-01-22 22:42:44 +0300109 "$(VIMEXE)" --clean -S test_urls.vim
Restorer424da592023-11-11 18:26:00 +0000110
111clean :
112 $(RM) doctags.exe doctags.obj
113 $(RM) *.html vim-stylesheet.css
114
115
Restorer424da592023-11-11 18:26:00 +0000116arabic.txt :
Restorer8c14e792023-11-25 14:39:51 +0000117 <<touch.bat $@
118@$(TOUCH)
119<<
Restorer424da592023-11-11 18:26:00 +0000120
121farsi.txt :
Restorer8c14e792023-11-25 14:39:51 +0000122 <<touch.bat $@
123@$(TOUCH)
124<<
Restorer424da592023-11-11 18:26:00 +0000125
126hebrew.txt :
Restorer8c14e792023-11-25 14:39:51 +0000127 <<touch.bat $@
128@$(TOUCH)
129<<
Restorer424da592023-11-11 18:26:00 +0000130
131russian.txt :
Restorer8c14e792023-11-25 14:39:51 +0000132 <<touch.bat $@
133@$(TOUCH)
134<<
Restorer424da592023-11-11 18:26:00 +0000135
136gui_w32.txt :
Restorer8c14e792023-11-25 14:39:51 +0000137 <<touch.bat $@
138@$(TOUCH)
139<<
Restorer424da592023-11-11 18:26:00 +0000140
141if_ole.txt :
Restorer8c14e792023-11-25 14:39:51 +0000142 <<touch.bat $@
143@$(TOUCH)
144<<
Restorer424da592023-11-11 18:26:00 +0000145
146os_390.txt :
Restorer8c14e792023-11-25 14:39:51 +0000147 <<touch.bat $@
148@$(TOUCH)
149<<
Restorer424da592023-11-11 18:26:00 +0000150
151os_amiga.txt :
Restorer8c14e792023-11-25 14:39:51 +0000152 <<touch.bat $@
153@$(TOUCH)
154<<
Restorer424da592023-11-11 18:26:00 +0000155
156os_beos.txt :
Restorer8c14e792023-11-25 14:39:51 +0000157 <<touch.bat $@
158@$(TOUCH)
159<<
Restorer424da592023-11-11 18:26:00 +0000160
161os_dos.txt :
Restorer8c14e792023-11-25 14:39:51 +0000162 <<touch.bat $@
163@$(TOUCH)
164<<
Restorer424da592023-11-11 18:26:00 +0000165
166os_haiku.txt :
Restorer8c14e792023-11-25 14:39:51 +0000167 <<touch.bat $@
168@$(TOUCH)
169<<
Restorer424da592023-11-11 18:26:00 +0000170
171os_mac.txt :
Restorer8c14e792023-11-25 14:39:51 +0000172 <<touch.bat $@
173@$(TOUCH)
174<<
Restorer424da592023-11-11 18:26:00 +0000175
176os_mint.txt :
Restorer8c14e792023-11-25 14:39:51 +0000177 <<touch.bat $@
178@$(TOUCH)
179<<
Restorer424da592023-11-11 18:26:00 +0000180
181os_msdos.txt :
Restorer8c14e792023-11-25 14:39:51 +0000182 <<touch.bat $@
183@$(TOUCH)
184<<
Restorer424da592023-11-11 18:26:00 +0000185
186os_os2.txt :
Restorer8c14e792023-11-25 14:39:51 +0000187 <<touch.bat $@
188@$(TOUCH)
189<<
Restorer424da592023-11-11 18:26:00 +0000190
191os_qnx.txt :
Restorer8c14e792023-11-25 14:39:51 +0000192 <<touch.bat $@
193@$(TOUCH)
194<<
Restorer424da592023-11-11 18:26:00 +0000195
196os_risc.txt :
Restorer8c14e792023-11-25 14:39:51 +0000197 <<touch.bat $@
198@$(TOUCH)
199<<
Restorer424da592023-11-11 18:26:00 +0000200
201os_win32.txt :
Restorer8c14e792023-11-25 14:39:51 +0000202 <<touch.bat $@
203@$(TOUCH)
204<<
Restorer424da592023-11-11 18:26:00 +0000205
206convert-all : $(CONVERTED)
Restorer459867b2024-01-22 22:42:44 +0300207!IF [$(PS) $(PSFLAGS) "exit $$psversiontable.psversion.major"] == 2
Restorer424da592023-11-11 18:26:00 +0000208!ERROR The program "PowerShell" version 3.0 or higher is required to work
209!ENDIF
210
211vim-da.UTF-8.1 : vim-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
221vimdiff-da.UTF-8.1 : vimdiff-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
231vimtutor-da.UTF-8.1 : vimtutor-da.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
241vim-de.UTF-8.1 : vim-de.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
251evim-fr.UTF-8.1 : evim-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
261vim-fr.UTF-8.1 : vim-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
271vimdiff-fr.UTF-8.1 : vimdiff-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
281vimtutor-fr.UTF-8.1 : vimtutor-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
291xxd-fr.UTF-8.1 : xxd-fr.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
301evim-it.UTF-8.1 : evim-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
311vim-it.UTF-8.1 : vim-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
321vimdiff-it.UTF-8.1 : vimdiff-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
331vimtutor-it.UTF-8.1 : vimtutor-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
341xxd-it.UTF-8.1 : xxd-it.1
342!IF DEFINED (ICONV)
343 $(ICONV) -f ISO-8859-1 -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(28591)) ^| \
348 1>nul New-Item -Force -Path . -ItemType file -Name $@
349!ENDIF
350
351evim-pl.UTF-8.1 : evim-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
361vim-pl.UTF-8.1 : vim-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
371vimdiff-pl.UTF-8.1 : vimdiff-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
381vimtutor-pl.UTF-8.1 : vimtutor-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
391xxd-pl.UTF-8.1 : xxd-pl.1
392!IF DEFINED (ICONV)
393 $(ICONV) -f ISO-8859-2 -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(28592)) ^| \
398 1>nul New-Item -Force -Path . -ItemType file -Name $@
399!ENDIF
400
401evim-ru.UTF-8.1 : evim-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
411vim-ru.UTF-8.1 : vim-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
421vimdiff-ru.UTF-8.1 : vimdiff-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
431vimtutor-ru.UTF-8.1 : vimtutor-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
441xxd-ru.UTF-8.1 : xxd-ru.1
442!IF DEFINED (ICONV)
443 $(ICONV) -f KOI8-R -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(20866)) ^| \
448 1>nul New-Item -Force -Path . -ItemType file -Name $@
449!ENDIF
450
451evim-tr.UTF-8.1 : evim-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
461vim-tr.UTF-8.1 : vim-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
471vimdiff-tr.UTF-8.1 : vimdiff-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
481vimtutor-tr.UTF-8.1 : vimtutor-tr.1
482!IF DEFINED (ICONV)
483 $(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
484!ELSE
485# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
Restorer459867b2024-01-22 22:42:44 +0300486 $(PS) $(PSFLAGS) \
Restorer424da592023-11-11 18:26:00 +0000487 [IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
488 1>nul New-Item -Force -Path . -ItemType file -Name $@
489!ENDIF
490
Restorer424da592023-11-11 18:26:00 +0000491# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0 ft=make: