1# $OpenBSD: Makefile.inc,v 1.2 2015/02/03 19:37:25 schwarze Exp $ 2 3EQN = /usr/local/bin/eqn 4 5SKIP_GROFF ?= ${REGRESS_TARGETS} 6SKIP_TMAN ?= ALL 7 8_FULLHTMLFILES = ${HTML_TARGETS:S/$/.html/} 9 10html-clean: 11.if !empty(_FULLHTMLFILES) 12 @rm -f ${_HTMLFILES} ${_FULLHTMLFILES} 13.endif 14 15.for t in ${HTML_TARGETS} 16${t}.out_html: ${t}.in 17 ${MANDOC} ${MOPTS} -Thtml ${.ALLSRC} | \ 18 ${.CURDIR}/../extract.pl > ${.TARGET} 19.endfor 20 21.include "../Makefile.inc" 22 23.in.mandoc_html: 24 @${MANDOC} ${MOPTS} -Thtml ${.IMPSRC} > ${.TARGET:S/mandoc_html$/html/} 25 @${.CURDIR}/../extract.pl < ${.TARGET:S/mandoc_html$/html/} > ${.TARGET} 26