Make_mvc.mak (14102B)
1 # 2 # Makefile for the Vim documentation on Windows 3 # 4 # 2024-03-20, Restorer, <restorer@mail2k.ru> 5 # 6 7 # included common tools 8 !INCLUDE ..\..\src\auto\nmake\tools.mak 9 10 # Common components 11 !INCLUDE .\Make_all.mak 12 13 14 # TODO: to think about what to use instead of awk. PowerShell? 15 #AWK = 16 17 # Correct the following line for the where executable file Vim is installed. 18 # Please do not put the path in quotes. 19 VIMPROG = ..\..\src\vim.exe 20 21 # Correct the following line for the directory where iconv installed. 22 # Please do not put the path in quotes. 23 ICONV_PATH = D:\Programs\GetText\bin 24 25 # In case some package like GnuWin32, UnixUtils, gettext 26 # or something similar is installed on the system. 27 # If the "iconv" program is installed on the system, but it is not registered 28 # in the %PATH% environment variable, then specify the full path to this file. 29 !IF EXIST ("iconv.exe") 30 ICONV = iconv.exe 31 !ELSEIF EXIST ("$(ICONV_PATH)\iconv.exe") 32 ICONV = "$(ICONV_PATH)\iconv.exe" 33 !ENDIF 34 35 .SUFFIXES : 36 .SUFFIXES : .c .o .txt .html 37 38 39 all : tags perlhtml $(CONVERTED) 40 41 # Use "doctags" to generate the tags file. Only works for English! 42 tags : doctags $(DOCS) 43 doctags.exe $(DOCS) | sort /L C /O tags 44 $(PS) $(PSFLAGS) \ 45 (Get-Content -Raw tags ^| Get-Unique ^| %%{$$_ \ 46 -replace \"`r\", \"\"}) \ 47 ^| New-Item -Path . -Name tags -ItemType file -Force 48 49 doctags : doctags.c 50 $(CC) doctags.c 51 52 53 # Use Vim to generate the tags file. Can only be used when Vim has been 54 # compiled and installed. Supports multiple languages. 55 vimtags : $(DOCS) 56 @ "$(VIMPROG)" --clean -esX -V1 -u doctags.vim 57 58 # TODO: 59 #html: noerrors tags $(HTMLS) 60 # if exist errors.log (more errors.log) 61 62 # TODO: 63 #noerrors: 64 # $(RM) errors.log 65 66 # TODO: 67 #.txt.html: 68 69 70 # TODO: 71 #index.html: help.txt 72 73 74 # TODO: 75 #vimindex.html: index.txt 76 77 78 # TODO: 79 #tags.ref tags.html: tags 80 81 # Perl version of .txt to .html conversion. 82 # There can't be two rules to produce a .html from a .txt file. 83 # Just run over all .txt files each time one changes. It's fast anyway. 84 perlhtml : tags $(DOCS) 85 vim2html.pl tags $(DOCS) 86 87 # Check URLs in the help with "curl" or "powershell". 88 test_urls : 89 "$(VIMPROG)" --clean -S test_urls.vim 90 91 clean : 92 - $(RM) doctags.exe doctags.obj 93 - $(RM) *.html vim-stylesheet.css 94 95 96 arabic.txt : 97 @ <<touch.bat $@ 98 @$(TOUCH) 99 << 100 101 farsi.txt : 102 @ <<touch.bat $@ 103 @$(TOUCH) 104 << 105 106 hebrew.txt : 107 @ <<touch.bat $@ 108 @$(TOUCH) 109 << 110 111 russian.txt : 112 @ <<touch.bat $@ 113 @$(TOUCH) 114 << 115 116 gui_w32.txt : 117 @ <<touch.bat $@ 118 @$(TOUCH) 119 << 120 121 if_ole.txt : 122 @ <<touch.bat $@ 123 @$(TOUCH) 124 << 125 126 os_390.txt : 127 @ <<touch.bat $@ 128 @$(TOUCH) 129 << 130 131 os_amiga.txt : 132 @ <<touch.bat $@ 133 @$(TOUCH) 134 << 135 136 os_beos.txt : 137 @ <<touch.bat $@ 138 @$(TOUCH) 139 << 140 141 os_dos.txt : 142 @ <<touch.bat $@ 143 @$(TOUCH) 144 << 145 146 os_haiku.txt : 147 @ <<touch.bat $@ 148 @$(TOUCH) 149 << 150 151 os_mac.txt : 152 @ <<touch.bat $@ 153 @$(TOUCH) 154 << 155 156 os_mint.txt : 157 @ <<touch.bat $@ 158 @$(TOUCH) 159 << 160 161 os_msdos.txt : 162 @ <<touch.bat $@ 163 @$(TOUCH) 164 << 165 166 os_os2.txt : 167 @ <<touch.bat $@ 168 @$(TOUCH) 169 << 170 171 os_qnx.txt : 172 @ <<touch.bat $@ 173 @$(TOUCH) 174 << 175 176 os_risc.txt : 177 @ <<touch.bat $@ 178 @$(TOUCH) 179 << 180 181 os_win32.txt : 182 @ <<touch.bat $@ 183 @$(TOUCH) 184 << 185 186 convert-all : $(CONVERTED) 187 188 vim-da.UTF-8.1 : vim-da.1 189 !IF DEFINED (ICONV) 190 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 191 !ELSE 192 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 193 $(PS) $(PSFLAGS) \ 194 [IO.File]::ReadAllText(\"$?\", \ 195 [Text.Encoding]::GetEncoding(28591)) ^| \ 196 1>nul New-Item -Path . -Name $@ -ItemType file -Force 197 !ENDIF 198 199 vimdiff-da.UTF-8.1 : vimdiff-da.1 200 !IF DEFINED (ICONV) 201 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 202 !ELSE 203 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 204 $(PS) $(PSFLAGS) \ 205 [IO.File]::ReadAllText(\"$?\", \ 206 [Text.Encoding]::GetEncoding(28591)) ^| \ 207 1>nul New-Item -Path . -Name $@ -ItemType file -Force 208 !ENDIF 209 210 vimtutor-da.UTF-8.1 : vimtutor-da.1 211 !IF DEFINED (ICONV) 212 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 213 !ELSE 214 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 215 $(PS) $(PSFLAGS) \ 216 [IO.File]::ReadAllText(\"$?\", \ 217 [Text.Encoding]::GetEncoding(28591)) ^| \ 218 1>nul New-Item -Path . -Name $@ -ItemType file -Force 219 !ENDIF 220 221 vim-de.UTF-8.1 : vim-de.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 226 $(PS) $(PSFLAGS) \ 227 [IO.File]::ReadAllText(\"$?\", \ 228 [Text.Encoding]::GetEncoding(28591)) ^| \ 229 1>nul New-Item -Path . -Name $@ -ItemType file -Force 230 !ENDIF 231 232 evim-fr.UTF-8.1 : evim-fr.1 233 !IF DEFINED (ICONV) 234 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 235 !ELSE 236 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 237 $(PS) $(PSFLAGS) \ 238 [IO.File]::ReadAllText(\"$?\", \ 239 [Text.Encoding]::GetEncoding(28591)) ^| \ 240 1>nul New-Item -Path . -Name $@ -ItemType file -Force 241 !ENDIF 242 243 vim-fr.UTF-8.1 : vim-fr.1 244 !IF DEFINED (ICONV) 245 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 246 !ELSE 247 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 248 $(PS) $(PSFLAGS) \ 249 [IO.File]::ReadAllText(\"$?\", \ 250 [Text.Encoding]::GetEncoding(28591)) ^| \ 251 1>nul New-Item -Path . -Name $@ -ItemType file -Force 252 !ENDIF 253 254 vimdiff-fr.UTF-8.1 : vimdiff-fr.1 255 !IF DEFINED (ICONV) 256 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 257 !ELSE 258 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 259 $(PS) $(PSFLAGS) \ 260 [IO.File]::ReadAllText(\"$?\", \ 261 [Text.Encoding]::GetEncoding(28591)) ^| \ 262 1>nul New-Item -Path . -Name $@ -ItemType file -Force 263 !ENDIF 264 265 vimtutor-fr.UTF-8.1 : vimtutor-fr.1 266 !IF DEFINED (ICONV) 267 $(ICONV) -f ISO-8859-1 -t utf-8 $? >$@ 268 !ELSE 269 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 270 $(PS) $(PSFLAGS) \ 271 [IO.File]::ReadAllText(\"$?\", \ 272 [Text.Encoding]::GetEncoding(28591)) ^| \ 273 1>nul New-Item -Path . -Name $@ -ItemType file -Force 274 !ENDIF 275 276 xxd-fr.UTF-8.1 : xxd-fr.1 277 !IF DEFINED (ICONV) 278 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 279 !ELSE 280 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 281 $(PS) $(PSFLAGS) \ 282 [IO.File]::ReadAllText(\"$?\", \ 283 [Text.Encoding]::GetEncoding(28591)) ^| \ 284 1>nul New-Item -Path . -Name $@ -ItemType file -Force 285 !ENDIF 286 287 evim-it.UTF-8.1 : evim-it.1 288 !IF DEFINED (ICONV) 289 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 290 !ELSE 291 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 292 $(PS) $(PSFLAGS) \ 293 [IO.File]::ReadAllText(\"$?\", \ 294 [Text.Encoding]::GetEncoding(28591)) ^| \ 295 1>nul New-Item -Path . -Name $@ -ItemType file -Force 296 !ENDIF 297 298 vim-it.UTF-8.1 : vim-it.1 299 !IF DEFINED (ICONV) 300 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 301 !ELSE 302 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 303 $(PS) $(PSFLAGS) \ 304 [IO.File]::ReadAllText(\"$?\", \ 305 [Text.Encoding]::GetEncoding(28591)) ^| \ 306 1>nul New-Item -Path . -Name $@ -ItemType file -Force 307 !ENDIF 308 309 vimdiff-it.UTF-8.1 : vimdiff-it.1 310 !IF DEFINED (ICONV) 311 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 312 !ELSE 313 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 314 $(PS) $(PSFLAGS) \ 315 [IO.File]::ReadAllText(\"$?\", \ 316 [Text.Encoding]::GetEncoding(28591)) ^| \ 317 1>nul New-Item -Path . -Name $@ -ItemType file -Force 318 !ENDIF 319 320 vimtutor-it.UTF-8.1 : vimtutor-it.1 321 !IF DEFINED (ICONV) 322 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 323 !ELSE 324 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 325 $(PS) $(PSFLAGS) \ 326 [IO.File]::ReadAllText(\"$?\", \ 327 [Text.Encoding]::GetEncoding(28591)) ^| \ 328 1>nul New-Item -Path . -Name $@ -ItemType file -Force 329 !ENDIF 330 331 xxd-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 336 $(PS) $(PSFLAGS) \ 337 [IO.File]::ReadAllText(\"$?\", \ 338 [Text.Encoding]::GetEncoding(28591)) ^| \ 339 1>nul New-Item -Path . -Name $@ -ItemType file -Force 340 !ENDIF 341 342 evim-pl.UTF-8.1 : evim-pl.1 343 !IF DEFINED (ICONV) 344 $(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@ 345 !ELSE 346 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 347 $(PS) $(PSFLAGS) \ 348 [IO.File]::ReadAllText(\"$?\", \ 349 [Text.Encoding]::GetEncoding(28592)) ^| \ 350 1>nul New-Item -Path . -Name $@ -ItemType file -Force 351 !ENDIF 352 353 vim-pl.UTF-8.1 : vim-pl.1 354 !IF DEFINED (ICONV) 355 $(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@ 356 !ELSE 357 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 358 $(PS) $(PSFLAGS) \ 359 [IO.File]::ReadAllText(\"$?\", \ 360 [Text.Encoding]::GetEncoding(28592)) ^| \ 361 1>nul New-Item -Path . -Name $@ -ItemType file -Force 362 !ENDIF 363 364 vimdiff-pl.UTF-8.1 : vimdiff-pl.1 365 !IF DEFINED (ICONV) 366 $(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@ 367 !ELSE 368 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 369 $(PS) $(PSFLAGS) \ 370 [IO.File]::ReadAllText(\"$?\", \ 371 [Text.Encoding]::GetEncoding(28592)) ^| \ 372 1>nul New-Item -Path . -Name $@ -ItemType file -Force 373 !ENDIF 374 375 vimtutor-pl.UTF-8.1 : vimtutor-pl.1 376 !IF DEFINED (ICONV) 377 $(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@ 378 !ELSE 379 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 380 $(PS) $(PSFLAGS) \ 381 [IO.File]::ReadAllText(\"$?\", \ 382 [Text.Encoding]::GetEncoding(28592)) ^| \ 383 1>nul New-Item -Path . -Name $@ -ItemType file -Force 384 !ENDIF 385 386 xxd-pl.UTF-8.1 : xxd-pl.1 387 !IF DEFINED (ICONV) 388 $(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@ 389 !ELSE 390 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 391 $(PS) $(PSFLAGS) \ 392 [IO.File]::ReadAllText(\"$?\", \ 393 [Text.Encoding]::GetEncoding(28592)) ^| \ 394 1>nul New-Item -Path . -Name $@ -ItemType file -Force 395 !ENDIF 396 397 evim-ru.UTF-8.1 : evim-ru.1 398 !IF DEFINED (ICONV) 399 $(ICONV) -f KOI8-R -t UTF-8 $? >$@ 400 !ELSE 401 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 402 $(PS) $(PSFLAGS) \ 403 [IO.File]::ReadAllText(\"$?\", \ 404 [Text.Encoding]::GetEncoding(20866)) ^| \ 405 1>nul New-Item -Path . -Name $@ -ItemType file -Force 406 !ENDIF 407 408 vim-ru.UTF-8.1 : vim-ru.1 409 !IF DEFINED (ICONV) 410 $(ICONV) -f KOI8-R -t UTF-8 $? >$@ 411 !ELSE 412 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 413 $(PS) $(PSFLAGS) \ 414 [IO.File]::ReadAllText(\"$?\", \ 415 [Text.Encoding]::GetEncoding(20866)) ^| \ 416 1>nul New-Item -Path . -Name $@ -ItemType file -Force 417 !ENDIF 418 419 vimdiff-ru.UTF-8.1 : vimdiff-ru.1 420 !IF DEFINED (ICONV) 421 $(ICONV) -f KOI8-R -t UTF-8 $? >$@ 422 !ELSE 423 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 424 $(PS) $(PSFLAGS) \ 425 [IO.File]::ReadAllText(\"$?\", \ 426 [Text.Encoding]::GetEncoding(20866)) ^| \ 427 1>nul New-Item -Path . -Name $@ -ItemType file -Force 428 !ENDIF 429 430 vimtutor-ru.UTF-8.1 : vimtutor-ru.1 431 !IF DEFINED (ICONV) 432 $(ICONV) -f KOI8-R -t UTF-8 $? >$@ 433 !ELSE 434 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 435 $(PS) $(PSFLAGS) \ 436 [IO.File]::ReadAllText(\"$?\", \ 437 [Text.Encoding]::GetEncoding(20866)) ^| \ 438 1>nul New-Item -Path . -Name $@ -ItemType file -Force 439 !ENDIF 440 441 xxd-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 446 $(PS) $(PSFLAGS) \ 447 [IO.File]::ReadAllText(\"$?\", \ 448 [Text.Encoding]::GetEncoding(20866)) ^| \ 449 1>nul New-Item -Path . -Name $@ -ItemType file -Force 450 !ENDIF 451 452 evim-sv.UTF-8.1 : evim-sv.1 453 !IF DEFINED (ICONV) 454 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 455 !ELSE 456 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 457 $(PS) $(PSFLAGS) \ 458 [IO.File]::ReadAllText(\"$?\", \ 459 [Text.Encoding]::GetEncoding(28599)) ^| \ 460 1>nul New-Item -Path . -Name $@ -ItemType file -Force 461 !ENDIF 462 463 vim-sv.UTF-8.1 : vim-sv.1 464 !IF DEFINED (ICONV) 465 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 466 !ELSE 467 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 468 $(PS) $(PSFLAGS) \ 469 [IO.File]::ReadAllText(\"$?\", \ 470 [Text.Encoding]::GetEncoding(28599)) ^| \ 471 1>nul New-Item -Path . -Name $@ -ItemType file -Force 472 !ENDIF 473 474 vimdiff-sv.UTF-8.1 : vimdiff-sv.1 475 !IF DEFINED (ICONV) 476 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 477 !ELSE 478 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 479 $(PS) $(PSFLAGS) \ 480 [IO.File]::ReadAllText(\"$?\", \ 481 [Text.Encoding]::GetEncoding(28599)) ^| \ 482 1>nul New-Item -Path . -Name $@ -ItemType file -Force 483 !ENDIF 484 485 vimtutor-sv.UTF-8.1 : vimtutor-sv.1 486 !IF DEFINED (ICONV) 487 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 488 !ELSE 489 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 490 $(PS) $(PSFLAGS) \ 491 [IO.File]::ReadAllText(\"$?\", \ 492 [Text.Encoding]::GetEncoding(28599)) ^| \ 493 1>nul New-Item -Path . -Name $@ -ItemType file -Force 494 !ENDIF 495 496 xxd-sv.UTF-8.1 : xxd-sv.1 497 !IF DEFINED (ICONV) 498 $(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@ 499 !ELSE 500 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 501 $(PS) $(PSFLAGS) \ 502 [IO.File]::ReadAllText(\"$?\", \ 503 [Text.Encoding]::GetEncoding(28599)) ^| \ 504 1>nul New-Item -Path . -Name $@ -ItemType file -Force 505 !ENDIF 506 507 evim-tr.UTF-8.1 : evim-tr.1 508 !IF DEFINED (ICONV) 509 $(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@ 510 !ELSE 511 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 512 $(PS) $(PSFLAGS) \ 513 [IO.File]::ReadAllText(\"$?\", \ 514 [Text.Encoding]::GetEncoding(28599)) ^| \ 515 1>nul New-Item -Path . -Name $@ -ItemType file -Force 516 !ENDIF 517 518 vim-tr.UTF-8.1 : vim-tr.1 519 !IF DEFINED (ICONV) 520 $(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@ 521 !ELSE 522 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 523 $(PS) $(PSFLAGS) \ 524 [IO.File]::ReadAllText(\"$?\", \ 525 [Text.Encoding]::GetEncoding(28599)) ^| \ 526 1>nul New-Item -Path . -Name $@ -ItemType file -Force 527 !ENDIF 528 529 vimdiff-tr.UTF-8.1 : vimdiff-tr.1 530 !IF DEFINED (ICONV) 531 $(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@ 532 !ELSE 533 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 534 $(PS) $(PSFLAGS) \ 535 [IO.File]::ReadAllText(\"$?\", \ 536 [Text.Encoding]::GetEncoding(28599)) ^| \ 537 1>nul New-Item -Path . -Name $@ -ItemType file -Force 538 !ENDIF 539 540 vimtutor-tr.UTF-8.1 : vimtutor-tr.1 541 !IF DEFINED (ICONV) 542 $(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@ 543 !ELSE 544 # Conversion to UTF-8 encoding without BOM and with UNIX-like line ending 545 $(PS) $(PSFLAGS) \ 546 [IO.File]::ReadAllText(\"$?\", \ 547 [Text.Encoding]::GetEncoding(28599)) ^| \ 548 1>nul New-Item -Path . -Name $@ -ItemType file -Force 549 !ENDIF 550 551 # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=79 ft=make: