2004-06-13 20:20:40 +00:00
|
|
|
|
#
|
|
|
|
|
# Makefile for the Vim documentation on Unix
|
|
|
|
|
#
|
|
|
|
|
# If you get "don't know how to make scratch", first run make in the source
|
|
|
|
|
# directory. Or remove the include below.
|
|
|
|
|
|
|
|
|
|
AWK = awk
|
|
|
|
|
|
2024-07-06 11:37:04 +02:00
|
|
|
|
VIMPROG = ../../src/vim
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
# include the config.mk from the source directory. It's only needed to set
|
|
|
|
|
# AWK, used for "make html". Comment this out if the include gives problems.
|
|
|
|
|
include ../../src/auto/config.mk
|
|
|
|
|
|
2023-11-04 08:57:09 +00:00
|
|
|
|
# Common components
|
2023-11-11 18:26:00 +00:00
|
|
|
|
include Make_all.mak
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
2004-06-13 20:20:40 +00:00
|
|
|
|
.SUFFIXES:
|
|
|
|
|
.SUFFIXES: .c .o .txt .html
|
2024-01-22 22:42:44 +03:00
|
|
|
|
.PHONY: all vimtags noerrors perlhtml clean test_urls
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
2008-08-06 17:06:04 +00:00
|
|
|
|
all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man $(CONVERTED)
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
# Use Vim to generate the tags file. Can only be used when Vim has been
|
2024-07-22 20:09:26 +02:00
|
|
|
|
# compiled. Supports multiple languages.
|
2004-06-13 20:20:40 +00:00
|
|
|
|
vimtags: $(DOCS)
|
2024-07-04 17:47:16 +02:00
|
|
|
|
@$(VIMPROG) --clean -esX -V1 -u doctags.vim
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
# Use "doctags" to generate the tags file. Only works for English!
|
|
|
|
|
tags: doctags $(DOCS)
|
2024-01-22 22:42:44 +03:00
|
|
|
|
./doctags $(DOCS) | LANG=C LC_ALL=C sort >$@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
uniq -d -2 tags
|
|
|
|
|
|
|
|
|
|
doctags: doctags.c
|
|
|
|
|
$(CC) doctags.c -o doctags
|
|
|
|
|
|
|
|
|
|
vim.man: vim.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
nroff -man $? | sed -e s/.//g > $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
2008-08-06 17:06:04 +00:00
|
|
|
|
evim.man: evim.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
nroff -man $? | sed -e s/.//g > $@
|
2008-08-06 17:06:04 +00:00
|
|
|
|
|
2004-06-13 20:20:40 +00:00
|
|
|
|
vimdiff.man: vimdiff.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
nroff -man $? | sed -e s/.//g > $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
vimtutor.man: vimtutor.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
nroff -man $? | sed -e s/.//g > $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
xxd.man: xxd.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
nroff -man $? | sed -e s/.//g > $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
# Awk version of .txt to .html conversion.
|
2010-07-21 20:40:27 +02:00
|
|
|
|
html: noerrors tags $(HTMLS)
|
2004-06-13 20:20:40 +00:00
|
|
|
|
@if test -f errors.log; then more errors.log; fi
|
|
|
|
|
|
|
|
|
|
noerrors:
|
|
|
|
|
-rm -f errors.log
|
|
|
|
|
|
2010-07-21 20:40:27 +02:00
|
|
|
|
$(HTMLS): tags.ref
|
|
|
|
|
|
2004-06-13 20:20:40 +00:00
|
|
|
|
.txt.html:
|
|
|
|
|
$(AWK) -f makehtml.awk $< >$@
|
|
|
|
|
|
2006-03-20 21:47:49 +00:00
|
|
|
|
# index.html is the starting point for HTML, but for the help files it is
|
|
|
|
|
# help.txt. Therefore use vimindex.html for index.txt.
|
|
|
|
|
index.html: help.txt
|
2024-08-16 21:13:50 +02:00
|
|
|
|
$(AWK) -f makehtml.awk $? >$@
|
2006-03-20 21:47:49 +00:00
|
|
|
|
|
|
|
|
|
vimindex.html: index.txt
|
2024-08-16 21:13:50 +02:00
|
|
|
|
$(AWK) -f makehtml.awk $? >$@
|
2006-03-20 21:47:49 +00:00
|
|
|
|
|
2004-06-13 20:20:40 +00:00
|
|
|
|
tags.ref tags.html: tags
|
|
|
|
|
$(AWK) -f maketags.awk tags >tags.html
|
|
|
|
|
|
|
|
|
|
# Perl version of .txt to .html conversion.
|
|
|
|
|
# There can't be two rules to produce a .html from a .txt file.
|
|
|
|
|
# Just run over all .txt files each time one changes. It's fast anyway.
|
|
|
|
|
perlhtml: tags $(DOCS)
|
|
|
|
|
./vim2html.pl tags $(DOCS)
|
|
|
|
|
|
2017-11-30 20:27:52 +01:00
|
|
|
|
# Check URLs in the help with "curl".
|
|
|
|
|
test_urls:
|
2024-07-04 17:47:16 +02:00
|
|
|
|
$(VIMPROG) --clean -S test_urls.vim
|
2017-11-30 20:27:52 +01:00
|
|
|
|
|
2004-06-13 20:20:40 +00:00
|
|
|
|
clean:
|
2024-11-16 12:47:06 +01:00
|
|
|
|
-rm -f doctags *.html tags.ref tags-* vim-stylesheet.css
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
# These files are in the extra archive, skip if not present
|
|
|
|
|
|
|
|
|
|
arabic.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
farsi.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
hebrew.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
russian.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
gui_w32.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
if_ole.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
os_390.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
os_amiga.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
os_beos.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
os_dos.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
2020-02-26 16:16:53 +01:00
|
|
|
|
os_haiku.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2020-02-26 16:16:53 +01:00
|
|
|
|
|
2004-06-13 20:20:40 +00:00
|
|
|
|
os_mac.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
os_mint.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
os_msdos.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
os_os2.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
os_qnx.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
os_risc.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
os_win32.txt:
|
2024-01-22 22:42:44 +03:00
|
|
|
|
touch $@
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
2024-12-03 21:59:52 +01:00
|
|
|
|
vietnamese.txt:
|
|
|
|
|
touch $@
|
|
|
|
|
|
2024-08-16 21:13:50 +02:00
|
|
|
|
# In *BSD, the variable '$<' is used in suffix-transformation rules (in GNU this
|
|
|
|
|
# is called "implicit rules", and in MS Windows it is called "inference rules").
|
|
|
|
|
# For code portability, it is better to use the '$?' variable for explicit rules.
|
|
|
|
|
# Especially since there is only one dependency and it should presumably always
|
|
|
|
|
# be newer than the target file.
|
2023-11-11 18:26:00 +00:00
|
|
|
|
vim-da.UTF-8.1: vim-da.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2023-11-04 08:57:09 +00:00
|
|
|
|
|
2023-11-11 18:26:00 +00:00
|
|
|
|
vimdiff-da.UTF-8.1: vimdiff-da.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2023-11-04 08:57:09 +00:00
|
|
|
|
|
2023-11-11 18:26:00 +00:00
|
|
|
|
vimtutor-da.UTF-8.1: vimtutor-da.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2023-11-04 08:57:09 +00:00
|
|
|
|
|
2023-11-11 18:26:00 +00:00
|
|
|
|
vim-de.UTF-8.1: vim-de.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2023-11-04 08:57:09 +00:00
|
|
|
|
|
2005-04-15 21:00:38 +00:00
|
|
|
|
vim-fr.UTF-8.1: vim-fr.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2005-04-15 21:00:38 +00:00
|
|
|
|
|
|
|
|
|
evim-fr.UTF-8.1: evim-fr.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2005-04-15 21:00:38 +00:00
|
|
|
|
|
|
|
|
|
vimdiff-fr.UTF-8.1: vimdiff-fr.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2005-04-15 21:00:38 +00:00
|
|
|
|
|
|
|
|
|
vimtutor-fr.UTF-8.1: vimtutor-fr.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2005-04-15 21:00:38 +00:00
|
|
|
|
|
|
|
|
|
xxd-fr.UTF-8.1: xxd-fr.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2005-04-15 21:00:38 +00:00
|
|
|
|
|
2005-03-18 20:25:31 +00:00
|
|
|
|
vim-it.UTF-8.1: vim-it.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
|
|
|
|
evim-it.UTF-8.1: evim-it.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
|
|
|
|
vimdiff-it.UTF-8.1: vimdiff-it.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
|
|
|
|
vimtutor-it.UTF-8.1: vimtutor-it.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
|
|
|
|
xxd-it.UTF-8.1: xxd-it.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin1 -t UTF-8 $? >$@
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
2008-08-06 17:06:04 +00:00
|
|
|
|
vim-pl.UTF-8.1: vim-pl.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin2 -t UTF-8 $? >$@
|
2008-08-06 17:06:04 +00:00
|
|
|
|
|
|
|
|
|
evim-pl.UTF-8.1: evim-pl.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin2 -t UTF-8 $? >$@
|
2008-08-06 17:06:04 +00:00
|
|
|
|
|
|
|
|
|
vimdiff-pl.UTF-8.1: vimdiff-pl.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin2 -t UTF-8 $? >$@
|
2008-08-06 17:06:04 +00:00
|
|
|
|
|
|
|
|
|
vimtutor-pl.UTF-8.1: vimtutor-pl.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin2 -t UTF-8 $? >$@
|
2008-08-06 17:06:04 +00:00
|
|
|
|
|
|
|
|
|
xxd-pl.UTF-8.1: xxd-pl.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin2 -t UTF-8 $? >$@
|
2008-08-06 17:06:04 +00:00
|
|
|
|
|
2005-03-18 20:25:31 +00:00
|
|
|
|
vim-ru.UTF-8.1: vim-ru.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f KOI8-R -t UTF-8 $? >$@
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
|
|
|
|
evim-ru.UTF-8.1: evim-ru.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f KOI8-R -t UTF-8 $? >$@
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
|
|
|
|
vimdiff-ru.UTF-8.1: vimdiff-ru.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f KOI8-R -t UTF-8 $? >$@
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
|
|
|
|
vimtutor-ru.UTF-8.1: vimtutor-ru.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f KOI8-R -t UTF-8 $? >$@
|
2005-03-18 20:25:31 +00:00
|
|
|
|
|
|
|
|
|
xxd-ru.UTF-8.1: xxd-ru.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f KOI8-R -t UTF-8 $? >$@
|
2020-05-31 14:25:22 +02:00
|
|
|
|
|
|
|
|
|
vim-tr.UTF-8.1: vim-tr.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin5 -t UTF-8 $? >$@
|
2020-05-31 14:25:22 +02:00
|
|
|
|
|
|
|
|
|
evim-tr.UTF-8.1: evim-tr.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin5 -t UTF-8 $? >$@
|
2020-05-31 14:25:22 +02:00
|
|
|
|
|
|
|
|
|
vimdiff-tr.UTF-8.1: vimdiff-tr.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin5 -t UTF-8 $? >$@
|
2020-05-31 14:25:22 +02:00
|
|
|
|
|
|
|
|
|
vimtutor-tr.UTF-8.1: vimtutor-tr.1
|
2024-08-16 21:13:50 +02:00
|
|
|
|
iconv -f latin5 -t UTF-8 $? >$@
|