-# $OpenBSD: Makefile.inc,v 1.13 2014/08/11 04:18:18 schwarze Exp $
+# $OpenBSD: Makefile.inc,v 1.14 2014/08/14 00:07:55 schwarze Exp $
.include "Makefile.sub"
_LINTDIFFS += ${t}.diff_lint
.endfor
+_HTMLVALS = ${REGRESS_TARGETS:C/$/.validate_html/}
+
# --- convenience targets ---
# Note that bsd.regress.mk automatically adds REGRESS_TARGETS to all.
lint: lint-clean ${_LINTDIFFS}
+html: ${_HTMLVALS}
+
# --- suffix rules ---
.SUFFIXES: .diff_ascii .diff_lint .diff_man .diff_utf8 .in .in_man \
${t}:
@echo "TODO: -Tascii disabled for: ${.TARGET}"
. endif
+${t}.validate_html: ${t}.in
+ @echo "${MANDOC} ${MOPTS} -Thtml ${t}.in | validate"
+ @-${MANDOC} ${MOPTS} -Thtml ${.ALLSRC} | validate
.endfor
.for t in ${UTF8_TARGETS}
rm -f ${_LINTFILES}
.endif
-.PHONY: ${_ASCIIDIFFS} ${_LINTDIFFS} ${_MANDIFFS} ${_UTF8DIFFS}
+.PHONY: ${_ASCIIDIFFS} ${_HTMLVALS} ${_LINTDIFFS} ${_MANDIFFS} ${_UTF8DIFFS}
# ----------------------------------------------------------------------
-# $OpenBSD: Makefile.sub,v 1.1 2014/06/20 18:27:51 schwarze Exp $
+# $OpenBSD: Makefile.sub,v 1.2 2014/08/14 00:07:55 schwarze Exp $
-_MAIN_TARGETS = ascii utf8 tman lint
+_MAIN_TARGETS = ascii utf8 tman lint html
_CLEAN_TARGETS = ascii-clean utf8-clean tman-clean lint-clean
_OUT_TARGETS = groff groff-clean lint-out lint-out-clean obj-clean