Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 486 lines (421 sloc) 8.543 kB
e5c6ef7 updated for version 7.0001
vimboss authored
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 # Set to $(VIMTARGET) when executed from src/Makefile.
10 VIMEXE = vim
11
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
15
16 DOCS = \
17 arabic.txt \
18 autocmd.txt \
19 change.txt \
20 cmdline.txt \
3d2cce3 updated for version 7.0140
vimboss authored
21 debug.txt \
d87f8c5 updated for version 7.2a
vimboss authored
22 debugger.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
23 develop.txt \
24 diff.txt \
25 digraph.txt \
26 editing.txt \
27 eval.txt \
28 farsi.txt \
29 filetype.txt \
30 fold.txt \
d87f8c5 updated for version 7.2a
vimboss authored
31 ft_ada.txt \
32 ft_sql.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
33 gui.txt \
34 gui_w16.txt \
35 gui_w32.txt \
36 gui_x11.txt \
37 hangulin.txt \
38 hebrew.txt \
39 help.txt \
2548b4d @brammool Move text from various.txt to a new helphelp.txt help file.
brammool authored
40 helphelp.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
41 howto.txt \
42 if_cscop.txt \
af77f72 updated for version 7.0021
vimboss authored
43 if_mzsch.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
44 if_ole.txt \
45 if_perl.txt \
46 if_pyth.txt \
47 if_ruby.txt \
48 if_sniff.txt \
49 if_tcl.txt \
50 indent.txt \
51 index.txt \
52 insert.txt \
53 intro.txt \
54 map.txt \
55 mbyte.txt \
d87f8c5 updated for version 7.2a
vimboss authored
56 message.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
57 mlang.txt \
d87f8c5 updated for version 7.2a
vimboss authored
58 motion.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
59 netbeans.txt \
60 options.txt \
61 os_390.txt \
62 os_amiga.txt \
63 os_beos.txt \
64 os_dos.txt \
65 os_mac.txt \
66 os_mint.txt \
67 os_msdos.txt \
68 os_os2.txt \
69 os_qnx.txt \
70 os_risc.txt \
71 os_unix.txt \
72 os_vms.txt \
73 os_win32.txt \
74 pattern.txt \
7a30f23 updated for version 7.1a
vimboss authored
75 pi_getscript.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
76 pi_gzip.txt \
77 pi_netrw.txt \
9c16730 updated for version 7.0209
vimboss authored
78 pi_paren.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
79 pi_spec.txt \
ca4f046 updated for version 7.0161
vimboss authored
80 pi_tar.txt \
a7081a0 updated for version 7.0f03
vimboss authored
81 pi_vimball.txt \
ca4f046 updated for version 7.0161
vimboss authored
82 pi_zip.txt \
287c69b updated for version 7.0007
vimboss authored
83 print.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
84 quickfix.txt \
85 quickref.txt \
86 quotes.txt \
87 recover.txt \
88 remote.txt \
89 repeat.txt \
90 rileft.txt \
91 russian.txt \
92 scroll.txt \
93 sign.txt \
d87f8c5 updated for version 7.2a
vimboss authored
94 spell.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
95 sponsor.txt \
96 starting.txt \
97 syntax.txt \
a53ba0a updated for version 7.0201
vimboss authored
98 tabpage.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
99 tagsrch.txt \
100 term.txt \
101 tips.txt \
102 todo.txt \
103 uganda.txt \
104 undo.txt \
105 usr_01.txt \
106 usr_02.txt \
107 usr_03.txt \
108 usr_04.txt \
109 usr_05.txt \
110 usr_06.txt \
111 usr_07.txt \
112 usr_08.txt \
113 usr_09.txt \
114 usr_10.txt \
115 usr_11.txt \
116 usr_12.txt \
117 usr_20.txt \
118 usr_21.txt \
119 usr_22.txt \
120 usr_23.txt \
121 usr_24.txt \
122 usr_25.txt \
123 usr_26.txt \
124 usr_27.txt \
125 usr_28.txt \
126 usr_29.txt \
127 usr_30.txt \
128 usr_31.txt \
5728c49 updated for version 7.0b
vimboss authored
129 usr_32.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
130 usr_40.txt \
131 usr_41.txt \
132 usr_42.txt \
133 usr_43.txt \
134 usr_44.txt \
135 usr_45.txt \
136 usr_90.txt \
137 usr_toc.txt \
138 various.txt \
139 version4.txt \
140 version5.txt \
141 version6.txt \
287c69b updated for version 7.0007
vimboss authored
142 version7.txt \
e5c6ef7 updated for version 7.0001
vimboss authored
143 vi_diff.txt \
144 visual.txt \
145 windows.txt \
146 workshop.txt
147
148 HTMLS = \
149 arabic.html \
150 autocmd.html \
151 change.html \
152 cmdline.html \
3d2cce3 updated for version 7.0140
vimboss authored
153 debug.html \
e5c6ef7 updated for version 7.0001
vimboss authored
154 debugger.html \
155 develop.html \
156 diff.html \
157 digraph.html \
158 editing.html \
159 eval.html \
160 farsi.html \
161 filetype.html \
162 fold.html \
d87f8c5 updated for version 7.2a
vimboss authored
163 ft_ada.html \
164 ft_sql.html \
e5c6ef7 updated for version 7.0001
vimboss authored
165 gui.html \
166 gui_w16.html \
167 gui_w32.html \
168 gui_x11.html \
169 hangulin.html \
170 hebrew.html \
171 howto.html \
172 if_cscop.html \
af77f72 updated for version 7.0021
vimboss authored
173 if_mzsch.html \
e5c6ef7 updated for version 7.0001
vimboss authored
174 if_ole.html \
175 if_perl.html \
176 if_pyth.html \
177 if_ruby.html \
178 if_sniff.html \
179 if_tcl.html \
180 indent.html \
181 index.html \
182 insert.html \
183 intro.html \
184 map.html \
185 mbyte.html \
d87f8c5 updated for version 7.2a
vimboss authored
186 message.html \
e5c6ef7 updated for version 7.0001
vimboss authored
187 mlang.html \
d87f8c5 updated for version 7.2a
vimboss authored
188 motion.html \
e5c6ef7 updated for version 7.0001
vimboss authored
189 netbeans.html \
190 options.html \
191 os_390.html \
192 os_amiga.html \
193 os_beos.html \
194 os_dos.html \
195 os_mac.html \
196 os_mint.html \
197 os_msdos.html \
198 os_os2.html \
199 os_qnx.html \
200 os_risc.html \
201 os_unix.html \
202 os_vms.html \
203 os_win32.html \
204 pattern.html \
7a30f23 updated for version 7.1a
vimboss authored
205 pi_getscript.html \
e5c6ef7 updated for version 7.0001
vimboss authored
206 pi_gzip.html \
207 pi_netrw.html \
9c16730 updated for version 7.0209
vimboss authored
208 pi_paren.html \
e5c6ef7 updated for version 7.0001
vimboss authored
209 pi_spec.html \
a7081a0 updated for version 7.0f03
vimboss authored
210 pi_tar.html \
211 pi_vimball.html \
212 pi_zip.html \
287c69b updated for version 7.0007
vimboss authored
213 print.html \
e5c6ef7 updated for version 7.0001
vimboss authored
214 quickfix.html \
215 quickref.html \
216 quotes.html \
217 recover.html \
218 remote.html \
219 repeat.html \
220 rileft.html \
221 russian.html \
222 scroll.html \
223 sign.html \
d87f8c5 updated for version 7.2a
vimboss authored
224 spell.html \
e5c6ef7 updated for version 7.0001
vimboss authored
225 sponsor.html \
226 starting.html \
227 syntax.html \
a53ba0a updated for version 7.0201
vimboss authored
228 tabpage.html \
e5c6ef7 updated for version 7.0001
vimboss authored
229 tags.html \
7a30f23 updated for version 7.1a
vimboss authored
230 tagsrch.html \
e5c6ef7 updated for version 7.0001
vimboss authored
231 term.html \
232 tips.html \
233 todo.html \
234 uganda.html \
235 undo.html \
236 usr_01.html \
237 usr_02.html \
238 usr_03.html \
239 usr_04.html \
240 usr_05.html \
241 usr_06.html \
242 usr_07.html \
243 usr_08.html \
244 usr_09.html \
245 usr_10.html \
246 usr_11.html \
247 usr_12.html \
248 usr_20.html \
249 usr_21.html \
250 usr_22.html \
251 usr_23.html \
252 usr_24.html \
253 usr_25.html \
254 usr_26.html \
255 usr_27.html \
256 usr_28.html \
257 usr_29.html \
258 usr_30.html \
259 usr_31.html \
5728c49 updated for version 7.0b
vimboss authored
260 usr_32.html \
e5c6ef7 updated for version 7.0001
vimboss authored
261 usr_40.html \
262 usr_41.html \
263 usr_42.html \
264 usr_43.html \
265 usr_44.html \
266 usr_45.html \
267 usr_90.html \
268 usr_toc.html \
269 various.html \
270 version4.html \
271 version5.html \
272 version6.html \
287c69b updated for version 7.0007
vimboss authored
273 version7.html \
e5c6ef7 updated for version 7.0001
vimboss authored
274 vi_diff.html \
d87f8c5 updated for version 7.2a
vimboss authored
275 vimindex.html \
e5c6ef7 updated for version 7.0001
vimboss authored
276 visual.html \
277 windows.html \
278 workshop.html
279
dc2ffd3 updated for version 7.0061
vimboss authored
280 CONVERTED = \
de5b4ee updated for version 7.0066
vimboss authored
281 vim-fr.UTF-8.1 \
282 evim-fr.UTF-8.1 \
283 vimdiff-fr.UTF-8.1 \
284 vimtutor-fr.UTF-8.1 \
285 xxd-fr.UTF-8.1 \
dc2ffd3 updated for version 7.0061
vimboss authored
286 vim-it.UTF-8.1 \
287 evim-it.UTF-8.1 \
288 vimdiff-it.UTF-8.1 \
289 vimtutor-it.UTF-8.1 \
290 xxd-it.UTF-8.1 \
ebb92dd updated for version 7.2c-000
vimboss authored
291 vim-pl.UTF-8.1 \
292 evim-pl.UTF-8.1 \
293 vimdiff-pl.UTF-8.1 \
294 vimtutor-pl.UTF-8.1 \
295 xxd-pl.UTF-8.1 \
dc2ffd3 updated for version 7.0061
vimboss authored
296 vim-ru.UTF-8.1 \
297 evim-ru.UTF-8.1 \
298 vimdiff-ru.UTF-8.1 \
299 vimtutor-ru.UTF-8.1 \
d87f8c5 updated for version 7.2a
vimboss authored
300 xxd-ru.UTF-8.1
dc2ffd3 updated for version 7.0061
vimboss authored
301
e5c6ef7 updated for version 7.0001
vimboss authored
302 .SUFFIXES:
303 .SUFFIXES: .c .o .txt .html
304
ebb92dd updated for version 7.2c-000
vimboss authored
305 all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man $(CONVERTED)
e5c6ef7 updated for version 7.0001
vimboss authored
306
307 # Use Vim to generate the tags file. Can only be used when Vim has been
308 # compiled and installed. Supports multiple languages.
309 vimtags: $(DOCS)
8aea8c7 updated for version 7.1-217
vimboss authored
310 $(VIMEXE) -u NONE -esX -c "helptags ++t ." -c quit
e5c6ef7 updated for version 7.0001
vimboss authored
311
312 # Use "doctags" to generate the tags file. Only works for English!
313 tags: doctags $(DOCS)
314 ./doctags $(DOCS) | LANG=C LC_ALL=C sort >tags
315 uniq -d -2 tags
316
317 doctags: doctags.c
318 $(CC) doctags.c -o doctags
319
320 vim.man: vim.1
321 nroff -man vim.1 | sed -e s/.//g > vim.man
322
ebb92dd updated for version 7.2c-000
vimboss authored
323 evim.man: evim.1
324 nroff -man evim.1 | sed -e s/.//g > evim.man
325
e5c6ef7 updated for version 7.0001
vimboss authored
326 vimdiff.man: vimdiff.1
327 nroff -man vimdiff.1 | sed -e s/.//g > vimdiff.man
328
329 vimtutor.man: vimtutor.1
330 nroff -man vimtutor.1 | sed -e s/.//g > vimtutor.man
331
332 xxd.man: xxd.1
333 nroff -man xxd.1 | sed -e s/.//g > xxd.man
334
335 uganda.nsis.txt: uganda.txt
336 sed -e 's/[ ]*\*[-a-zA-Z0-9.]*\*//g' -e 's/vim:tw=78://' \
337 uganda.txt | uniq >uganda.nsis.txt
338
339 # Awk version of .txt to .html conversion.
340 html: noerrors tags tags.ref $(HTMLS)
341 @if test -f errors.log; then more errors.log; fi
342
343 noerrors:
344 -rm -f errors.log
345
346 .txt.html:
347 $(AWK) -f makehtml.awk $< >$@
348
33fd289 updated for version 7.0230
vimboss authored
349 # index.html is the starting point for HTML, but for the help files it is
350 # help.txt. Therefore use vimindex.html for index.txt.
351 index.html: help.txt
352 $(AWK) -f makehtml.awk help.txt >index.html
353
354 vimindex.html: index.txt
355 $(AWK) -f makehtml.awk index.txt >vimindex.html
356
e5c6ef7 updated for version 7.0001
vimboss authored
357 tags.ref tags.html: tags
358 $(AWK) -f maketags.awk tags >tags.html
359
360 # Perl version of .txt to .html conversion.
361 # There can't be two rules to produce a .html from a .txt file.
362 # Just run over all .txt files each time one changes. It's fast anyway.
363 perlhtml: tags $(DOCS)
364 ./vim2html.pl tags $(DOCS)
365
366 clean:
367 -rm doctags *.html tags.ref
368
369 # These files are in the extra archive, skip if not present
370
371 arabic.txt:
372 touch arabic.txt
373
374 farsi.txt:
375 touch farsi.txt
376
377 hebrew.txt:
378 touch hebrew.txt
379
380 russian.txt:
381 touch russian.txt
382
383 gui_w16.txt:
384 touch gui_w16.txt
385
386 gui_w32.txt:
387 touch gui_w32.txt
388
389 if_ole.txt:
390 touch if_ole.txt
391
392 os_390.txt:
393 touch os_390.txt
394
395 os_amiga.txt:
396 touch os_amiga.txt
397
398 os_beos.txt:
399 touch os_beos.txt
400
401 os_dos.txt:
402 touch os_dos.txt
403
404 os_mac.txt:
405 touch os_mac.txt
406
407 os_mint.txt:
408 touch os_mint.txt
409
410 os_msdos.txt:
411 touch os_msdos.txt
412
413 os_os2.txt:
414 touch os_os2.txt
415
416 os_qnx.txt:
417 touch os_qnx.txt
418
419 os_risc.txt:
420 touch os_risc.txt
421
422 os_win32.txt:
423 touch os_win32.txt
dc2ffd3 updated for version 7.0061
vimboss authored
424
cb220b5 updated for version 7.0212
vimboss authored
425 # Note that $< works with GNU make while $> works for BSD make.
66437ca updated for version 7.0c
vimboss authored
426 # Is there a solution that works for both??
de5b4ee updated for version 7.0066
vimboss authored
427 vim-fr.UTF-8.1: vim-fr.1
428 iconv -f latin1 -t utf-8 $< >$@
429
430 evim-fr.UTF-8.1: evim-fr.1
431 iconv -f latin1 -t utf-8 $< >$@
432
433 vimdiff-fr.UTF-8.1: vimdiff-fr.1
434 iconv -f latin1 -t utf-8 $< >$@
435
436 vimtutor-fr.UTF-8.1: vimtutor-fr.1
437 iconv -f latin1 -t utf-8 $< >$@
438
439 xxd-fr.UTF-8.1: xxd-fr.1
440 iconv -f latin1 -t utf-8 $< >$@
441
dc2ffd3 updated for version 7.0061
vimboss authored
442 vim-it.UTF-8.1: vim-it.1
de5b4ee updated for version 7.0066
vimboss authored
443 iconv -f latin1 -t utf-8 $< >$@
dc2ffd3 updated for version 7.0061
vimboss authored
444
445 evim-it.UTF-8.1: evim-it.1
de5b4ee updated for version 7.0066
vimboss authored
446 iconv -f latin1 -t utf-8 $< >$@
dc2ffd3 updated for version 7.0061
vimboss authored
447
448 vimdiff-it.UTF-8.1: vimdiff-it.1
de5b4ee updated for version 7.0066
vimboss authored
449 iconv -f latin1 -t utf-8 $< >$@
dc2ffd3 updated for version 7.0061
vimboss authored
450
451 vimtutor-it.UTF-8.1: vimtutor-it.1
de5b4ee updated for version 7.0066
vimboss authored
452 iconv -f latin1 -t utf-8 $< >$@
dc2ffd3 updated for version 7.0061
vimboss authored
453
454 xxd-it.UTF-8.1: xxd-it.1
de5b4ee updated for version 7.0066
vimboss authored
455 iconv -f latin1 -t utf-8 $< >$@
dc2ffd3 updated for version 7.0061
vimboss authored
456
ebb92dd updated for version 7.2c-000
vimboss authored
457 vim-pl.UTF-8.1: vim-pl.1
458 iconv -f latin2 -t utf-8 $< >$@
459
460 evim-pl.UTF-8.1: evim-pl.1
461 iconv -f latin2 -t utf-8 $< >$@
462
463 vimdiff-pl.UTF-8.1: vimdiff-pl.1
464 iconv -f latin2 -t utf-8 $< >$@
465
466 vimtutor-pl.UTF-8.1: vimtutor-pl.1
467 iconv -f latin2 -t utf-8 $< >$@
468
469 xxd-pl.UTF-8.1: xxd-pl.1
470 iconv -f latin2 -t utf-8 $< >$@
471
dc2ffd3 updated for version 7.0061
vimboss authored
472 vim-ru.UTF-8.1: vim-ru.1
de5b4ee updated for version 7.0066
vimboss authored
473 iconv -f KOI8-R -t utf-8 $< >$@
dc2ffd3 updated for version 7.0061
vimboss authored
474
475 evim-ru.UTF-8.1: evim-ru.1
de5b4ee updated for version 7.0066
vimboss authored
476 iconv -f KOI8-R -t utf-8 $< >$@
dc2ffd3 updated for version 7.0061
vimboss authored
477
478 vimdiff-ru.UTF-8.1: vimdiff-ru.1
de5b4ee updated for version 7.0066
vimboss authored
479 iconv -f KOI8-R -t utf-8 $< >$@
dc2ffd3 updated for version 7.0061
vimboss authored
480
481 vimtutor-ru.UTF-8.1: vimtutor-ru.1
de5b4ee updated for version 7.0066
vimboss authored
482 iconv -f KOI8-R -t utf-8 $< >$@
dc2ffd3 updated for version 7.0061
vimboss authored
483
484 xxd-ru.UTF-8.1: xxd-ru.1
de5b4ee updated for version 7.0066
vimboss authored
485 iconv -f KOI8-R -t utf-8 $< >$@
Something went wrong with that request. Please try again.