aboutsummaryrefslogtreecommitdiff
path: root/share/mk/doc.docbook.mk
diff options
context:
space:
mode:
authorCeri Davies <ceri@FreeBSD.org>2003-05-21 11:23:45 +0000
committerCeri Davies <ceri@FreeBSD.org>2003-05-21 11:23:45 +0000
commita8bb589a424691c606dadc5580e8488b4dcf4456 (patch)
tree6f0330453c4dfe12100f1041afd0d6c42c9b1c6d /share/mk/doc.docbook.mk
parent2e6abfcbc892f27c3b0c74346f1654dd062a92cc (diff)
downloaddoc-a8bb589a424691c606dadc5580e8488b4dcf4456.tar.gz
doc-a8bb589a424691c606dadc5580e8488b4dcf4456.zip
Slightly beef up the spellcheck target so that it works for the html-split
and txt formats as well as the html format. Reviewed by: murray
Notes
Notes: svn path=/head/; revision=17028
Diffstat (limited to 'share/mk/doc.docbook.mk')
-rw-r--r--share/mk/doc.docbook.mk25
1 files changed, 24 insertions, 1 deletions
diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk
index acf48b8552..7ae379380e 100644
--- a/share/mk/doc.docbook.mk
+++ b/share/mk/doc.docbook.mk
@@ -681,11 +681,34 @@ ${DOC}.${_curformat}.${_curcompress}:
# Redefine them to do things before and after the files are installed,
# respectively.
-spellcheck:
+populate_html_docs:
+.if exists(HTML.manifest)
+_html_docs!=${CAT} HTML.manifest
+.endif
+
+spellcheck-html-split: populate_html_docs
+.for _html_file in ${_html_docs}
+ @echo "Spellcheck ${_html_file}"
+ @${HTML2TXT} ${HTML2TXTOPTS} ${.CURDIR}/${_html_file} | ${ISPELL} ${ISPELLOPTS}
+.endfor
+spellcheck-html:
.for _entry in ${_docs}
@echo "Spellcheck ${_entry}"
@${HTML2TXT} ${HTML2TXTOPTS} ${.CURDIR}/${_entry} | ${ISPELL} ${ISPELLOPTS}
.endfor
+spellcheck-txt:
+.for _entry in ${_docs:M*.txt}
+ @echo "Spellcheck ${_entry}"
+ @ < ${.CURDIR}/${_entry} ${ISPELL} ${ISPELLOPTS}
+.endfor
+.for _curformat in ${FORMATS}
+.if !target(spellcheck-${_curformat})
+spellcheck-${_curformat}:
+ @echo "Spellcheck is not currently supported for the ${_curformat} format."
+.endif
+.endfor
+
+spellcheck: ${FORMATS:C/^/spellcheck-/}
indexreport:
.for _entry in ${SRCS:M*.sgml}