2014-07-10 21:05:51 -07:00
|
|
|
#
|
|
|
|
# Makefile for the Vim documentation on Unix
|
|
|
|
#
|
|
|
|
# If you get "don't know how to make scratch", first run make in the source
|
|
|
|
# directory. Or remove the include below.
|
|
|
|
|
|
|
|
AWK = awk
|
|
|
|
|
2015-04-10 19:05:30 -07:00
|
|
|
DOCS = $(wildcard *.txt)
|
|
|
|
HTMLS = $(DOCS:.txt=.html)
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
.SUFFIXES:
|
2015-05-11 14:30:18 -07:00
|
|
|
.SUFFIXES: .c .o .txt .html
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
# Awk version of .txt to .html conversion.
|
2016-06-04 23:35:15 -07:00
|
|
|
html: noerrors $(HTMLS)
|
2014-09-20 05:24:16 -07:00
|
|
|
@if test -f errors.log; then cat errors.log; fi
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
noerrors:
|
|
|
|
-rm -f errors.log
|
|
|
|
|
|
|
|
$(HTMLS): tags.ref
|
|
|
|
|
|
|
|
.txt.html:
|
|
|
|
$(AWK) -f makehtml.awk $< >$@
|
|
|
|
|
|
|
|
# index.html is the starting point for HTML, but for the help files it is
|
|
|
|
# help.txt. Therefore use vimindex.html for index.txt.
|
|
|
|
index.html: help.txt
|
|
|
|
$(AWK) -f makehtml.awk help.txt >index.html
|
|
|
|
|
|
|
|
vimindex.html: index.txt
|
|
|
|
$(AWK) -f makehtml.awk index.txt >vimindex.html
|
|
|
|
|
|
|
|
tags.ref tags.html: tags
|
|
|
|
$(AWK) -f maketags.awk tags >tags.html
|
|
|
|
|
|
|
|
clean:
|
2016-12-02 18:33:57 -07:00
|
|
|
-rm -f *.html tags.ref $(HTMLS) errors.log tags
|
2014-07-10 21:05:51 -07:00
|
|
|
|