mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
runtime(doc): improve doc makefiles, add clean rule (#13855)
Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -39,6 +39,9 @@ ICONV = "$(ICONV_PATH)\iconv.exe"
|
|||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
RM = del /q
|
RM = del /q
|
||||||
|
PS = PowerShell.exe
|
||||||
|
|
||||||
|
PSFLAGS = -NoLogo -NoProfile -Command
|
||||||
|
|
||||||
.SUFFIXES :
|
.SUFFIXES :
|
||||||
.SUFFIXES : .c .o .txt .html
|
.SUFFIXES : .c .o .txt .html
|
||||||
@@ -49,9 +52,9 @@ all : tags perlhtml $(CONVERTED)
|
|||||||
# Use "doctags" to generate the tags file. Only works for English!
|
# Use "doctags" to generate the tags file. Only works for English!
|
||||||
tags : doctags $(DOCS)
|
tags : doctags $(DOCS)
|
||||||
doctags.exe $(DOCS) | sort /L C /O tags
|
doctags.exe $(DOCS) | sort /L C /O tags
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
"(Get-Content -Raw tags | Get-Unique | % {$$_ -replace \"`r\", \"\"}) \
|
(Get-Content -Raw tags ^| Get-Unique ^| %%{$$_ -replace \"`r\", \"\"})\
|
||||||
| New-Item -Force -Path . -ItemType file -Name tags"
|
^| New-Item -Force -Path . -ItemType file -Name tags
|
||||||
|
|
||||||
doctags : doctags.c
|
doctags : doctags.c
|
||||||
$(CC) doctags.c
|
$(CC) doctags.c
|
||||||
@@ -64,12 +67,10 @@ vimtags : $(DOCS)
|
|||||||
|
|
||||||
|
|
||||||
uganda.nsis.txt : uganda.???
|
uganda.nsis.txt : uganda.???
|
||||||
!@powershell -nologo -noprofile -Command \
|
!@$(PS) $(PSFLAGS) $$ext=(Get-Item $?).Extension; (Get-Content $? ^| \
|
||||||
$$ext=(Get-Item $?).Extension; (Get-Content $? ^| \
|
%%{$$_ -replace '\s*\*[-a-zA-Z0-9.]*\*', '' -replace 'vim:tw=78:.*', ''})\
|
||||||
% {$$_ -replace '\s*\*[-a-zA-Z0-9.]*\*', '' -replace 'vim:tw=78:.*', ''}) \
|
|
||||||
^| Set-Content $*$$ext
|
^| Set-Content $*$$ext
|
||||||
!@powershell -nologo -noprofile -Command \
|
!@$(PS) $(PSFLAGS) $$ext=(Get-Item $?).Extension; \
|
||||||
$$ext=(Get-Item $?).Extension; \
|
|
||||||
(Get-Content -Raw $(@B)$$ext).Trim() -replace '(\r\n){3,}', '$$1$$1' \
|
(Get-Content -Raw $(@B)$$ext).Trim() -replace '(\r\n){3,}', '$$1$$1' \
|
||||||
^| Set-Content $(@B)$$ext
|
^| Set-Content $(@B)$$ext
|
||||||
|
|
||||||
@@ -105,7 +106,7 @@ perlhtml : tags $(DOCS)
|
|||||||
|
|
||||||
# Check URLs in the help with "curl" or "powershell".
|
# Check URLs in the help with "curl" or "powershell".
|
||||||
test_urls :
|
test_urls :
|
||||||
"$(VIMEXE)" -S test_urls.vim
|
"$(VIMEXE)" --clean -S test_urls.vim
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
$(RM) doctags.exe doctags.obj
|
$(RM) doctags.exe doctags.obj
|
||||||
@@ -203,7 +204,7 @@ os_win32.txt :
|
|||||||
<<
|
<<
|
||||||
|
|
||||||
convert-all : $(CONVERTED)
|
convert-all : $(CONVERTED)
|
||||||
!IF [powershell -nologo -noprofile "exit $$psversiontable.psversion.major"] == 2
|
!IF [$(PS) $(PSFLAGS) "exit $$psversiontable.psversion.major"] == 2
|
||||||
!ERROR The program "PowerShell" version 3.0 or higher is required to work
|
!ERROR The program "PowerShell" version 3.0 or higher is required to work
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
@@ -212,7 +213,7 @@ vim-da.UTF-8.1 : vim-da.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -222,7 +223,7 @@ vimdiff-da.UTF-8.1 : vimdiff-da.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -232,7 +233,7 @@ vimtutor-da.UTF-8.1 : vimtutor-da.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -242,7 +243,7 @@ vim-de.UTF-8.1 : vim-de.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -252,7 +253,7 @@ evim-fr.UTF-8.1 : evim-fr.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -262,7 +263,7 @@ vim-fr.UTF-8.1 : vim-fr.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -272,7 +273,7 @@ vimdiff-fr.UTF-8.1 : vimdiff-fr.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -282,7 +283,7 @@ vimtutor-fr.UTF-8.1 : vimtutor-fr.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t utf-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t utf-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -292,7 +293,7 @@ xxd-fr.UTF-8.1 : xxd-fr.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -302,7 +303,7 @@ evim-it.UTF-8.1 : evim-it.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -312,7 +313,7 @@ vim-it.UTF-8.1 : vim-it.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -322,7 +323,7 @@ vimdiff-it.UTF-8.1 : vimdiff-it.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -332,7 +333,7 @@ vimtutor-it.UTF-8.1 : vimtutor-it.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -342,7 +343,7 @@ xxd-it.UTF-8.1 : xxd-it.1
|
|||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -352,7 +353,7 @@ evim-pl.UTF-8.1 : evim-pl.1
|
|||||||
$(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -362,7 +363,7 @@ vim-pl.UTF-8.1 : vim-pl.1
|
|||||||
$(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -372,7 +373,7 @@ vimdiff-pl.UTF-8.1 : vimdiff-pl.1
|
|||||||
$(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -382,7 +383,7 @@ vimtutor-pl.UTF-8.1 : vimtutor-pl.1
|
|||||||
$(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -392,7 +393,7 @@ xxd-pl.UTF-8.1 : xxd-pl.1
|
|||||||
$(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-2 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28592)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -402,7 +403,7 @@ evim-ru.UTF-8.1 : evim-ru.1
|
|||||||
$(ICONV) -f KOI8-R -t UTF-8 $? >$@
|
$(ICONV) -f KOI8-R -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -412,7 +413,7 @@ vim-ru.UTF-8.1 : vim-ru.1
|
|||||||
$(ICONV) -f KOI8-R -t UTF-8 $? >$@
|
$(ICONV) -f KOI8-R -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -422,7 +423,7 @@ vimdiff-ru.UTF-8.1 : vimdiff-ru.1
|
|||||||
$(ICONV) -f KOI8-R -t UTF-8 $? >$@
|
$(ICONV) -f KOI8-R -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -432,7 +433,7 @@ vimtutor-ru.UTF-8.1 : vimtutor-ru.1
|
|||||||
$(ICONV) -f KOI8-R -t UTF-8 $? >$@
|
$(ICONV) -f KOI8-R -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -442,7 +443,7 @@ xxd-ru.UTF-8.1 : xxd-ru.1
|
|||||||
$(ICONV) -f KOI8-R -t UTF-8 $? >$@
|
$(ICONV) -f KOI8-R -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(20866)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -452,7 +453,7 @@ evim-tr.UTF-8.1 : evim-tr.1
|
|||||||
$(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -462,7 +463,7 @@ vim-tr.UTF-8.1 : vim-tr.1
|
|||||||
$(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -472,7 +473,7 @@ vimdiff-tr.UTF-8.1 : vimdiff-tr.1
|
|||||||
$(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -482,7 +483,7 @@ vimtutor-tr.UTF-8.1 : vimtutor-tr.1
|
|||||||
$(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-9 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
# Conversion to UTF-8 encoding without BOM and with UNIX-like line ending
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) \
|
||||||
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
|
[IO.File]::ReadAllText(\"$?\", [Text.Encoding]::GetEncoding(28599)) ^| \
|
||||||
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
1>nul New-Item -Force -Path . -ItemType file -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
@@ -18,6 +18,7 @@ include Make_all.mak
|
|||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .o .txt .html
|
.SUFFIXES: .c .o .txt .html
|
||||||
|
.PHONY: all vimtags noerrors perlhtml clean test_urls
|
||||||
|
|
||||||
all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man $(CONVERTED)
|
all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man $(CONVERTED)
|
||||||
|
|
||||||
@@ -28,26 +29,26 @@ vimtags: $(DOCS)
|
|||||||
|
|
||||||
# Use "doctags" to generate the tags file. Only works for English!
|
# Use "doctags" to generate the tags file. Only works for English!
|
||||||
tags: doctags $(DOCS)
|
tags: doctags $(DOCS)
|
||||||
./doctags $(DOCS) | LANG=C LC_ALL=C sort >tags
|
./doctags $(DOCS) | LANG=C LC_ALL=C sort >$@
|
||||||
uniq -d -2 tags
|
uniq -d -2 tags
|
||||||
|
|
||||||
doctags: doctags.c
|
doctags: doctags.c
|
||||||
$(CC) doctags.c -o doctags
|
$(CC) doctags.c -o doctags
|
||||||
|
|
||||||
vim.man: vim.1
|
vim.man: vim.1
|
||||||
nroff -man vim.1 | sed -e s/.//g > vim.man
|
nroff -man $< | sed -e s/.//g > $@
|
||||||
|
|
||||||
evim.man: evim.1
|
evim.man: evim.1
|
||||||
nroff -man evim.1 | sed -e s/.//g > evim.man
|
nroff -man $< | sed -e s/.//g > $@
|
||||||
|
|
||||||
vimdiff.man: vimdiff.1
|
vimdiff.man: vimdiff.1
|
||||||
nroff -man vimdiff.1 | sed -e s/.//g > vimdiff.man
|
nroff -man $< | sed -e s/.//g > $@
|
||||||
|
|
||||||
vimtutor.man: vimtutor.1
|
vimtutor.man: vimtutor.1
|
||||||
nroff -man vimtutor.1 | sed -e s/.//g > vimtutor.man
|
nroff -man $< | sed -e s/.//g > $@
|
||||||
|
|
||||||
xxd.man: xxd.1
|
xxd.man: xxd.1
|
||||||
nroff -man xxd.1 | sed -e s/.//g > xxd.man
|
nroff -man $< | sed -e s/.//g > $@
|
||||||
|
|
||||||
uganda.nsis.txt: uganda.txt
|
uganda.nsis.txt: uganda.txt
|
||||||
sed -e 's/[ ]*\*[-a-zA-Z0-9.]*\*//g' -e 's/vim:tw=78:.*//' \
|
sed -e 's/[ ]*\*[-a-zA-Z0-9.]*\*//g' -e 's/vim:tw=78:.*//' \
|
||||||
@@ -68,10 +69,10 @@ $(HTMLS): tags.ref
|
|||||||
# index.html is the starting point for HTML, but for the help files it is
|
# index.html is the starting point for HTML, but for the help files it is
|
||||||
# help.txt. Therefore use vimindex.html for index.txt.
|
# help.txt. Therefore use vimindex.html for index.txt.
|
||||||
index.html: help.txt
|
index.html: help.txt
|
||||||
$(AWK) -f makehtml.awk help.txt >index.html
|
$(AWK) -f makehtml.awk $< >$@
|
||||||
|
|
||||||
vimindex.html: index.txt
|
vimindex.html: index.txt
|
||||||
$(AWK) -f makehtml.awk index.txt >vimindex.html
|
$(AWK) -f makehtml.awk $< >$@
|
||||||
|
|
||||||
tags.ref tags.html: tags
|
tags.ref tags.html: tags
|
||||||
$(AWK) -f maketags.awk tags >tags.html
|
$(AWK) -f maketags.awk tags >tags.html
|
||||||
@@ -84,7 +85,7 @@ perlhtml: tags $(DOCS)
|
|||||||
|
|
||||||
# Check URLs in the help with "curl".
|
# Check URLs in the help with "curl".
|
||||||
test_urls:
|
test_urls:
|
||||||
vim -S test_urls.vim
|
$(VIMEXE) --clean -S test_urls.vim
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f doctags *.html tags.ref
|
-rm -f doctags *.html tags.ref
|
||||||
@@ -92,58 +93,58 @@ clean:
|
|||||||
# These files are in the extra archive, skip if not present
|
# These files are in the extra archive, skip if not present
|
||||||
|
|
||||||
arabic.txt:
|
arabic.txt:
|
||||||
touch arabic.txt
|
touch $@
|
||||||
|
|
||||||
farsi.txt:
|
farsi.txt:
|
||||||
touch farsi.txt
|
touch $@
|
||||||
|
|
||||||
hebrew.txt:
|
hebrew.txt:
|
||||||
touch hebrew.txt
|
touch $@
|
||||||
|
|
||||||
russian.txt:
|
russian.txt:
|
||||||
touch russian.txt
|
touch $@
|
||||||
|
|
||||||
gui_w32.txt:
|
gui_w32.txt:
|
||||||
touch gui_w32.txt
|
touch $@
|
||||||
|
|
||||||
if_ole.txt:
|
if_ole.txt:
|
||||||
touch if_ole.txt
|
touch $@
|
||||||
|
|
||||||
os_390.txt:
|
os_390.txt:
|
||||||
touch os_390.txt
|
touch $@
|
||||||
|
|
||||||
os_amiga.txt:
|
os_amiga.txt:
|
||||||
touch os_amiga.txt
|
touch $@
|
||||||
|
|
||||||
os_beos.txt:
|
os_beos.txt:
|
||||||
touch os_beos.txt
|
touch $@
|
||||||
|
|
||||||
os_dos.txt:
|
os_dos.txt:
|
||||||
touch os_dos.txt
|
touch $@
|
||||||
|
|
||||||
os_haiku.txt:
|
os_haiku.txt:
|
||||||
touch os_haiku.txt
|
touch $@
|
||||||
|
|
||||||
os_mac.txt:
|
os_mac.txt:
|
||||||
touch os_mac.txt
|
touch $@
|
||||||
|
|
||||||
os_mint.txt:
|
os_mint.txt:
|
||||||
touch os_mint.txt
|
touch $@
|
||||||
|
|
||||||
os_msdos.txt:
|
os_msdos.txt:
|
||||||
touch os_msdos.txt
|
touch $@
|
||||||
|
|
||||||
os_os2.txt:
|
os_os2.txt:
|
||||||
touch os_os2.txt
|
touch $@
|
||||||
|
|
||||||
os_qnx.txt:
|
os_qnx.txt:
|
||||||
touch os_qnx.txt
|
touch $@
|
||||||
|
|
||||||
os_risc.txt:
|
os_risc.txt:
|
||||||
touch os_risc.txt
|
touch $@
|
||||||
|
|
||||||
os_win32.txt:
|
os_win32.txt:
|
||||||
touch os_win32.txt
|
touch $@
|
||||||
|
|
||||||
# Note that $< works with GNU make while $> works for BSD make.
|
# Note that $< works with GNU make while $> works for BSD make.
|
||||||
# Is there a solution that works for both??
|
# Is there a solution that works for both??
|
||||||
|
Reference in New Issue
Block a user