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-ru.UTF-8.1 \
297 .SUFFIXES
: .c .o .txt .html
299 all: tags vim.man vimdiff.man vimtutor.man xxd.man
$(CONVERTED
)
301 # Use Vim to generate the tags file. Can only be used when Vim has been
302 # compiled and installed. Supports multiple languages.
304 $(VIMEXE
) -u NONE
-esX
-c
"helptags ." -c quit
306 # Use "doctags" to generate the tags file. Only works for English!
307 tags: doctags
$(DOCS
)
308 .
/doctags
$(DOCS
) | LANG
=C LC_ALL
=C
sort >tags
312 $(CC
) doctags.c
-o doctags
315 nroff
-man vim
.1 | sed
-e s
/.
\b//g
> vim.man
317 vimdiff.man
: vimdiff
.1
318 nroff
-man vimdiff
.1 | sed
-e s
/.
\b//g
> vimdiff.man
320 vimtutor.man
: vimtutor
.1
321 nroff
-man vimtutor
.1 | sed
-e s
/.
\b//g
> vimtutor.man
324 nroff
-man xxd
.1 | sed
-e s
/.
\b//g
> xxd.man
326 uganda.nsis.txt
: uganda.txt
327 sed
-e
's/[ ]*\*[-a-zA-Z0-9.]*\*//g' -e
's/vim:tw=78://' \
328 uganda.txt | uniq
>uganda.nsis.txt
330 # Awk version of .txt to .html conversion.
331 html
: noerrors
tags tags.ref
$(HTMLS
)
332 @if
test -f errors.log
; then more errors.log
; fi
338 $(AWK
) -f makehtml.awk
$< >$@
340 # index.html is the starting point for HTML, but for the help files it is
341 # help.txt. Therefore use vimindex.html for index.txt.
343 $(AWK
) -f makehtml.awk help.txt
>index.html
345 vimindex.html
: index.txt
346 $(AWK
) -f makehtml.awk index.txt
>vimindex.html
348 tags.ref
tags.html
: tags
349 $(AWK
) -f maketags.awk
tags >tags.html
351 # Perl version of .txt to .html conversion.
352 # There can't be two rules to produce a .html from a .txt file.
353 # Just run over all .txt files each time one changes. It's fast anyway.
354 perlhtml
: tags $(DOCS
)
355 .
/vim2html.pl
tags $(DOCS
)
358 -rm doctags
*.html
tags.ref
360 # These files are in the extra archive, skip if not present
416 # Note that $< works with GNU make while $> works for BSD make.
417 # Is there a solution that works for both??
418 vim-fr.UTF-8.1
: vim-fr
.1
419 iconv
-f latin1
-t utf-8
$< >$@
421 evim-fr.UTF-8.1
: evim-fr
.1
422 iconv
-f latin1
-t utf-8
$< >$@
424 vimdiff-fr.UTF-8.1
: vimdiff-fr
.1
425 iconv
-f latin1
-t utf-8
$< >$@
427 vimtutor-fr.UTF-8.1
: vimtutor-fr
.1
428 iconv
-f latin1
-t utf-8
$< >$@
430 xxd-fr.UTF-8.1
: xxd-fr
.1
431 iconv
-f latin1
-t utf-8
$< >$@
433 vim-it.UTF-8.1
: vim-it
.1
434 iconv
-f latin1
-t utf-8
$< >$@
436 evim-it.UTF-8.1
: evim-it
.1
437 iconv
-f latin1
-t utf-8
$< >$@
439 vimdiff-it.UTF-8.1
: vimdiff-it
.1
440 iconv
-f latin1
-t utf-8
$< >$@
442 vimtutor-it.UTF-8.1
: vimtutor-it
.1
443 iconv
-f latin1
-t utf-8
$< >$@
445 xxd-it.UTF-8.1
: xxd-it
.1
446 iconv
-f latin1
-t utf-8
$< >$@
448 vim-ru.UTF-8.1
: vim-ru
.1
449 iconv
-f KOI8-R
-t utf-8
$< >$@
451 evim-ru.UTF-8.1
: evim-ru
.1
452 iconv
-f KOI8-R
-t utf-8
$< >$@
454 vimdiff-ru.UTF-8.1
: vimdiff-ru
.1
455 iconv
-f KOI8-R
-t utf-8
$< >$@
457 vimtutor-ru.UTF-8.1
: vimtutor-ru
.1
458 iconv
-f KOI8-R
-t utf-8
$< >$@
460 xxd-ru.UTF-8.1
: xxd-ru
.1
461 iconv
-f KOI8-R
-t utf-8
$< >$@