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
283 vimtutor-fr.UTF-8.1 \
288 vimtutor-it.UTF-8.1 \
293 vimtutor-pl.UTF-8.1 \
298 vimtutor-ru.UTF-8.1 \
302 .SUFFIXES
: .c .o .txt .html
304 all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man
$(CONVERTED
)
306 # Use Vim to generate the tags file. Can only be used when Vim has been
307 # compiled and installed. Supports multiple languages.
309 $(VIMEXE
) -u NONE
-esX
-c
"helptags ++t ." -c quit
311 # Use "doctags" to generate the tags file. Only works for English!
312 tags: doctags
$(DOCS
)
313 .
/doctags
$(DOCS
) | LANG
=C LC_ALL
=C
sort >tags
317 $(CC
) doctags.c
-o doctags
320 nroff
-man vim
.1 | sed
-e s
/.
\b//g
> vim.man
323 nroff
-man evim
.1 | sed
-e s
/.
\b//g
> evim.man
325 vimdiff.man
: vimdiff
.1
326 nroff
-man vimdiff
.1 | sed
-e s
/.
\b//g
> vimdiff.man
328 vimtutor.man
: vimtutor
.1
329 nroff
-man vimtutor
.1 | sed
-e s
/.
\b//g
> vimtutor.man
332 nroff
-man xxd
.1 | sed
-e s
/.
\b//g
> xxd.man
334 uganda.nsis.txt
: uganda.txt
335 sed
-e
's/[ ]*\*[-a-zA-Z0-9.]*\*//g' -e
's/vim:tw=78://' \
336 uganda.txt | uniq
>uganda.nsis.txt
338 # Awk version of .txt to .html conversion.
339 html
: noerrors
tags tags.ref
$(HTMLS
)
340 @if
test -f errors.log
; then more errors.log
; fi
346 $(AWK
) -f makehtml.awk
$< >$@
348 # index.html is the starting point for HTML, but for the help files it is
349 # help.txt. Therefore use vimindex.html for index.txt.
351 $(AWK
) -f makehtml.awk help.txt
>index.html
353 vimindex.html
: index.txt
354 $(AWK
) -f makehtml.awk index.txt
>vimindex.html
356 tags.ref
tags.html
: tags
357 $(AWK
) -f maketags.awk
tags >tags.html
359 # Perl version of .txt to .html conversion.
360 # There can't be two rules to produce a .html from a .txt file.
361 # Just run over all .txt files each time one changes. It's fast anyway.
362 perlhtml
: tags $(DOCS
)
363 .
/vim2html.pl
tags $(DOCS
)
366 -rm doctags
*.html
tags.ref
368 # These files are in the extra archive, skip if not present
424 # Note that $< works with GNU make while $> works for BSD make.
425 # Is there a solution that works for both??
426 vim-fr.UTF-8.1
: vim-fr
.1
427 iconv
-f latin1
-t utf-8
$< >$@
429 evim-fr.UTF-8.1
: evim-fr
.1
430 iconv
-f latin1
-t utf-8
$< >$@
432 vimdiff-fr.UTF-8.1
: vimdiff-fr
.1
433 iconv
-f latin1
-t utf-8
$< >$@
435 vimtutor-fr.UTF-8.1
: vimtutor-fr
.1
436 iconv
-f latin1
-t utf-8
$< >$@
438 xxd-fr.UTF-8.1
: xxd-fr
.1
439 iconv
-f latin1
-t utf-8
$< >$@
441 vim-it.UTF-8.1
: vim-it
.1
442 iconv
-f latin1
-t utf-8
$< >$@
444 evim-it.UTF-8.1
: evim-it
.1
445 iconv
-f latin1
-t utf-8
$< >$@
447 vimdiff-it.UTF-8.1
: vimdiff-it
.1
448 iconv
-f latin1
-t utf-8
$< >$@
450 vimtutor-it.UTF-8.1
: vimtutor-it
.1
451 iconv
-f latin1
-t utf-8
$< >$@
453 xxd-it.UTF-8.1
: xxd-it
.1
454 iconv
-f latin1
-t utf-8
$< >$@
456 vim-pl.UTF-8.1
: vim-pl
.1
457 iconv
-f latin2
-t utf-8
$< >$@
459 evim-pl.UTF-8.1
: evim-pl
.1
460 iconv
-f latin2
-t utf-8
$< >$@
462 vimdiff-pl.UTF-8.1
: vimdiff-pl
.1
463 iconv
-f latin2
-t utf-8
$< >$@
465 vimtutor-pl.UTF-8.1
: vimtutor-pl
.1
466 iconv
-f latin2
-t utf-8
$< >$@
468 xxd-pl.UTF-8.1
: xxd-pl
.1
469 iconv
-f latin2
-t utf-8
$< >$@
471 vim-ru.UTF-8.1
: vim-ru
.1
472 iconv
-f KOI8-R
-t utf-8
$< >$@
474 evim-ru.UTF-8.1
: evim-ru
.1
475 iconv
-f KOI8-R
-t utf-8
$< >$@
477 vimdiff-ru.UTF-8.1
: vimdiff-ru
.1
478 iconv
-f KOI8-R
-t utf-8
$< >$@
480 vimtutor-ru.UTF-8.1
: vimtutor-ru
.1
481 iconv
-f KOI8-R
-t utf-8
$< >$@
483 xxd-ru.UTF-8.1
: xxd-ru
.1
484 iconv
-f KOI8-R
-t utf-8
$< >$@