1 # $OpenBSD: Makefile,v 1.14 2020/07/30 21:32:19 schwarze Exp $
3 REGRESS_TARGETS = append cond empty escname factorial
4 REGRESS_TARGETS += indir infinite startde tab TH Dd
5 LINT_TARGETS = escname indir infinite
8 # infinite recursion aborts output completely
12 .include <bsd.regress.mk>
15 # OpenBSD only: non-standard targets
17 # --- additions to public targets ---
19 all ascii: ascii-diff-opt
21 ascii-clean: ascii-clean-opt
23 groff: TH.out_ascii_opt Dd.out_ascii_opt
25 groff-clean: groff-clean-opt
30 ascii-diff-opt: TH.mandoc_ascii_opt Dd.mandoc_ascii_opt
31 ${DIFF} ${.CURDIR}/TH.out_ascii_opt TH.mandoc_ascii_opt
32 ${DIFF} ${.CURDIR}/Dd.out_ascii_opt Dd.mandoc_ascii_opt
34 TH.mandoc_ascii_opt: TH.in
35 ${MANDOC} -Ios=OpenBSD -Tascii -man ${.ALLSRC} > ${.TARGET}
37 Dd.mandoc_ascii_opt: Dd.in
38 ${MANDOC} -Ios=OpenBSD -Tascii -mdoc ${.ALLSRC} > ${.TARGET}
41 rm -f TH.mandoc_ascii_opt Dd.mandoc_ascii_opt
43 TH.out_ascii_opt: TH.in
44 /usr/local/bin/nroff -c -man -Tascii ${.ALLSRC} > ${.TARGET}
46 Dd.out_ascii_opt: Dd.in
47 /usr/local/bin/nroff -c -mdoc -Tascii ${.ALLSRC} > ${.TARGET}
50 rm -f TH.out_ascii_opt Dd.out_ascii_opt