home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / mac / vim54rt.sit / runtime / doc / Makefile < prev    next >
Encoding:
Makefile  |  1999-08-14  |  3.6 KB  |  221 lines  |  [TEXT/ALFA]

  1. #
  2. # Makefile for the Vim documentation on Unix
  3. #
  4. # If you get "don't know how to make scratch", first run make in the source
  5. # directory.  Or remove the include below.
  6.  
  7. AWK = awk
  8.  
  9. # include the config.mk from the source directory.  It's only needed to set
  10. # AWK, used for "make html".  Comment this out if the include gives problems.
  11. include ../../src/config.mk
  12.  
  13. DOCS = \
  14.     autocmd.txt \
  15.     change.txt \
  16.     cmdline.txt \
  17.     digraph.txt \
  18.     editing.txt \
  19.     eval.txt \
  20.     farsi.txt \
  21.     gui.txt \
  22.     gui_w32.txt \
  23.     gui_x11.txt \
  24.     hangulin.txt \
  25.     help.txt \
  26.     howto.txt \
  27.     if_cscope.txt \
  28.     if_ole.txt \
  29.     if_perl.txt \
  30.     if_python.txt \
  31.     if_sniff.txt \
  32.     if_tcl.txt \
  33.     index.txt \
  34.     insert.txt \
  35.     intro.txt \
  36.     map.txt \
  37.     message.txt \
  38.     motion.txt \
  39.     multibyte.txt \
  40.     options.txt \
  41.     os_amiga.txt \
  42.     os_beos.txt \
  43.     os_dos.txt \
  44.     os_mac.txt \
  45.     os_mint.txt \
  46.     os_msdos.txt \
  47.     os_os2.txt \
  48.     os_riscos.txt \
  49.     os_unix.txt \
  50.     os_vms.txt \
  51.     os_win32.txt \
  52.     pattern.txt \
  53.     quickfix.txt \
  54.     quotes.txt \
  55.     recover.txt \
  56.     repeat.txt \
  57.     rightleft.txt \
  58.     scroll.txt \
  59.     starting.txt \
  60.     syntax.txt \
  61.     tagsearch.txt \
  62.     term.txt \
  63.     tips.txt \
  64.     todo.txt \
  65.     uganda.txt \
  66.     undo.txt \
  67.     various.txt \
  68.     version4.txt \
  69.     version5.txt \
  70.     vi_diff.txt \
  71.     visual.txt \
  72.     windows.txt
  73.  
  74. HTMLS = \
  75.     autocmd.html \
  76.     change.html \
  77.     cmdline.html \
  78.     digraph.html \
  79.     editing.html \
  80.     eval.html \
  81.     farsi.html \
  82.     gui.html \
  83.     gui_w32.html \
  84.     gui_x11.html \
  85.     hangulin.html \
  86.     help.html \
  87.     howto.html \
  88.     if_cscope.html \
  89.     if_ole.html \
  90.     if_perl.html \
  91.     if_python.html \
  92.     if_sniff.html \
  93.     if_tcl.html \
  94.     index.html \
  95.     insert.html \
  96.     intro.html \
  97.     map.html \
  98.     message.html \
  99.     motion.html \
  100.     multibyte.html \
  101.     options.html \
  102.     os_amiga.html \
  103.     os_beos.html \
  104.     os_dos.html \
  105.     os_mac.html \
  106.     os_mint.html \
  107.     os_msdos.html \
  108.     os_os2.html \
  109.     os_riscos.html \
  110.     os_unix.html \
  111.     os_vms.html \
  112.     os_win32.html \
  113.     pattern.html \
  114.     quickfix.html \
  115.     quotes.html \
  116.     recover.html \
  117.     repeat.html \
  118.     rightleft.html \
  119.     scroll.html \
  120.     starting.html \
  121.     syntax.html \
  122.     tagsearch.html \
  123.     term.html \
  124.     tips.html \
  125.     todo.html \
  126.     uganda.html \
  127.     undo.html \
  128.     various.html \
  129.     version4.html \
  130.     version5.html \
  131.     vi_diff.html \
  132.     visual.html \
  133.     windows.html
  134.  
  135. .SUFFIXES:
  136. .SUFFIXES: .c .o .txt .html
  137.  
  138. all: tags vim.man vimtutor.man xxd.man ctags.man
  139.  
  140. tags: doctags $(DOCS)
  141.     ./doctags $(DOCS) | sort >tags
  142.     uniq -d -2 tags
  143.  
  144. doctags: doctags.c
  145.     $(CC) doctags.c -o doctags
  146.  
  147. vim.man: vim.1
  148.     nroff -man vim.1 | sed -e s/.//g > vim.man
  149.  
  150. vimtutor.man: vimtutor.1
  151.     nroff -man vimtutor.1 | sed -e s/.//g > vimtutor.man
  152.  
  153. xxd.man: xxd.1
  154.     nroff -man xxd.1 | sed -e s/.//g > xxd.man
  155.  
  156. ctags.man: ctags.1
  157.     nroff -man ctags.1 | sed -e s/.//g > ctags.man
  158.  
  159. ctags.1: ../../src/ctags/ctags.1
  160.     cp ../../src/ctags/ctags.1 ctags.1
  161.  
  162. # Awk version of .txt to .html conversion.
  163. html: noerrors tags tags.ref $(HTMLS)
  164.     @if test -f errors.log; then more errors.log; fi
  165.  
  166. noerrors:
  167.     -rm -f errors.log
  168.  
  169. .txt.html:
  170.     $(AWK) -f makehtml.awk $< >$@
  171.  
  172. tags.ref: tags
  173.     $(AWK) -f maketags.awk tags >tags.html
  174.  
  175. # Perl version of .txt to .html conversion.
  176. # There can't be two rules to produce a .html from a .txt file.
  177. # Just run over all .txt files each time one changes.  It's fast anyway.
  178. perlhtml: tags $(DOCS)
  179.     ./vim2html.pl tags $(DOCS)
  180.  
  181. clean:
  182.     -rm doctags *.html tags.ref
  183.  
  184. # These files are in the extra archive, skip if not present
  185.  
  186. farsi.txt:
  187.     touch farsi.txt
  188.  
  189. gui_w32.txt:
  190.     touch gui_w32.txt
  191.  
  192. if_ole.txt:
  193.     touch if_ole.txt
  194.  
  195. os_amiga.txt:
  196.     touch os_amiga.txt
  197.  
  198. os_beos.txt:
  199.     touch os_beos.txt
  200.  
  201. os_dos.txt:
  202.     touch os_dos.txt
  203.  
  204. os_mac.txt:
  205.     touch os_mac.txt
  206.  
  207. os_mint.txt:
  208.     touch os_mint.txt
  209.  
  210. os_msdos.txt:
  211.     touch os_msdos.txt
  212.  
  213. os_os2.txt:
  214.     touch os_os2.txt
  215.  
  216. os_riscos.txt:
  217.     touch os_riscos.txt
  218.  
  219. os_win32.txt:
  220.     touch os_win32.txt
  221.