2 # Makefile for the Vim documentation on Unix
4 # If you get "don't know how to make scratch", first run make in the source
5 # directory. Or remove the include below.
9 # Set to $(VIMTARGET) when executed from src/Makefile.
12 # include the config.mk from the source directory. It's only needed to set
13 # AWK, used for "make html". Comment this out if the include gives problems.
14 include ..
/..
/src
/auto
/config.mk
284 vimtutor-fr.UTF-8.1 \
289 vimtutor-it.UTF-8.1 \
294 vimtutor-ru.UTF-8.1 \
298 .SUFFIXES
: .c .o .txt .html
300 all: tags vim.man vimdiff.man vimtutor.man xxd.man
$(CONVERTED
)
302 # Use Vim to generate the tags file. Can only be used when Vim has been
303 # compiled and installed. Supports multiple languages.
305 $(VIMEXE
) -u NONE
-esX
-c
"helptags ++t ." -c quit
307 # Use "doctags" to generate the tags file. Only works for English!
308 tags: doctags
$(DOCS
)
309 .
/doctags
$(DOCS
) | LANG
=C LC_ALL
=C
sort >tags
313 $(CC
) doctags.c
-o doctags
316 nroff
-man vim
.1 | sed
-e s
/.
\b//g
> vim.man
318 vimdiff.man
: vimdiff
.1
319 nroff
-man vimdiff
.1 | sed
-e s
/.
\b//g
> vimdiff.man
321 vimtutor.man
: vimtutor
.1
322 nroff
-man vimtutor
.1 | sed
-e s
/.
\b//g
> vimtutor.man
325 nroff
-man xxd
.1 | sed
-e s
/.
\b//g
> xxd.man
327 uganda.nsis.txt
: uganda.txt
328 sed
-e
's/[ ]*\*[-a-zA-Z0-9.]*\*//g' -e
's/vim:tw=78://' \
329 uganda.txt | uniq
>uganda.nsis.txt
331 # Awk version of .txt to .html conversion.
332 html
: noerrors
tags tags.ref
$(HTMLS
)
333 @if
test -f errors.log
; then more errors.log
; fi
339 $(AWK
) -f makehtml.awk
$< >$@
341 # index.html is the starting point for HTML, but for the help files it is
342 # help.txt. Therefore use vimindex.html for index.txt.
344 $(AWK
) -f makehtml.awk help.txt
>index.html
346 vimindex.html
: index.txt
347 $(AWK
) -f makehtml.awk index.txt
>vimindex.html
349 tags.ref
tags.html
: tags
350 $(AWK
) -f maketags.awk
tags >tags.html
352 # Perl version of .txt to .html conversion.
353 # There can't be two rules to produce a .html from a .txt file.
354 # Just run over all .txt files each time one changes. It's fast anyway.
355 perlhtml
: tags $(DOCS
)
356 .
/vim2html.pl
tags $(DOCS
)
359 -rm doctags
*.html
tags.ref
361 # These files are in the extra archive, skip if not present
417 # Note that $< works with GNU make while $> works for BSD make.
418 # Is there a solution that works for both??
419 vim-fr.UTF-8.1
: vim-fr
.1
420 iconv
-f latin1
-t utf-8
$< >$@
422 evim-fr.UTF-8.1
: evim-fr
.1
423 iconv
-f latin1
-t utf-8
$< >$@
425 vimdiff-fr.UTF-8.1
: vimdiff-fr
.1
426 iconv
-f latin1
-t utf-8
$< >$@
428 vimtutor-fr.UTF-8.1
: vimtutor-fr
.1
429 iconv
-f latin1
-t utf-8
$< >$@
431 xxd-fr.UTF-8.1
: xxd-fr
.1
432 iconv
-f latin1
-t utf-8
$< >$@
434 vim-it.UTF-8.1
: vim-it
.1
435 iconv
-f latin1
-t utf-8
$< >$@
437 evim-it.UTF-8.1
: evim-it
.1
438 iconv
-f latin1
-t utf-8
$< >$@
440 vimdiff-it.UTF-8.1
: vimdiff-it
.1
441 iconv
-f latin1
-t utf-8
$< >$@
443 vimtutor-it.UTF-8.1
: vimtutor-it
.1
444 iconv
-f latin1
-t utf-8
$< >$@
446 xxd-it.UTF-8.1
: xxd-it
.1
447 iconv
-f latin1
-t utf-8
$< >$@
449 vim-ru.UTF-8.1
: vim-ru
.1
450 iconv
-f KOI8-R
-t utf-8
$< >$@
452 evim-ru.UTF-8.1
: evim-ru
.1
453 iconv
-f KOI8-R
-t utf-8
$< >$@
455 vimdiff-ru.UTF-8.1
: vimdiff-ru
.1
456 iconv
-f KOI8-R
-t utf-8
$< >$@
458 vimtutor-ru.UTF-8.1
: vimtutor-ru
.1
459 iconv
-f KOI8-R
-t utf-8
$< >$@
461 xxd-ru.UTF-8.1
: xxd-ru
.1
462 iconv
-f KOI8-R
-t utf-8
$< >$@