[BACK]Return to Makefile.inc CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / eqn

File: [cvsweb.bsd.lv] / mandoc / regress / eqn / Makefile.inc (download)

Revision 1.2, Wed Mar 8 22:54:24 2017 UTC (7 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5, VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2
Changes since 1.1: +1 -0 lines

Now that markdown output is tested for almost everything, test all
input files in -T markdown output mode by default and only mark
those files with SKIP_MARKDOWN that are not to be tested.
Much easier to read, and almost minus 40 lines of Makefile code.

# $OpenBSD: Makefile.inc,v 1.2 2015/02/03 19:37:25 schwarze Exp $

EQN = /usr/local/bin/eqn

SKIP_GROFF ?= ${REGRESS_TARGETS}
SKIP_TMAN ?= ALL
SKIP_MARKDOWN ?= ALL


# OpenBSD only: maintainer targets and custom extraction

_FULLHTMLFILES = ${HTML_TARGETS:S/$/.html/}

html-clean:
.if !empty(_FULLHTMLFILES)
	@rm -f ${_HTMLFILES} ${_FULLHTMLFILES}
.endif

.for t in ${HTML_TARGETS}
${t}.out_html: ${t}.in
	${MANDOC} ${MOPTS} -Thtml ${.ALLSRC} | \
		${.CURDIR}/../extract.pl > ${.TARGET}
.endfor

.include "../Makefile.inc"

.in.mandoc_html:
	@${MANDOC} ${MOPTS} -Thtml ${.IMPSRC} > ${.TARGET:S/mandoc_html$/html/}
	@${.CURDIR}/../extract.pl < ${.TARGET:S/mandoc_html$/html/} > ${.TARGET}