| 1 |
# $OpenBSD: Makefile,v 1.14 2020/07/30 21:32:19 schwarze Exp $ |
| 2 |
|
| 3 |
REGRESS_TARGETS = append cond empty escname factorial |
| 4 |
REGRESS_TARGETS += indir infinite startde tab TH Dd |
| 5 |
LINT_TARGETS = escname indir infinite |
| 6 |
|
| 7 |
# groff-1.22.4 defect: |
| 8 |
# infinite recursion aborts output completely |
| 9 |
|
| 10 |
SKIP_GROFF = infinite |
| 11 |
|
| 12 |
.include <bsd.regress.mk> |
| 13 |
|
| 14 |
|
| 15 |
# OpenBSD only: non-standard targets |
| 16 |
|
| 17 |
# --- additions to public targets --- |
| 18 |
|
| 19 |
all ascii: ascii-diff-opt |
| 20 |
|
| 21 |
ascii-clean: ascii-clean-opt |
| 22 |
|
| 23 |
groff: TH.out_ascii_opt Dd.out_ascii_opt |
| 24 |
|
| 25 |
groff-clean: groff-clean-opt |
| 26 |
|
| 27 |
|
| 28 |
# --- local rules --- |
| 29 |
|
| 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 |
| 33 |
|
| 34 |
TH.mandoc_ascii_opt: TH.in |
| 35 |
${MANDOC} -Ios=OpenBSD -Tascii -man ${.ALLSRC} > ${.TARGET} |
| 36 |
|
| 37 |
Dd.mandoc_ascii_opt: Dd.in |
| 38 |
${MANDOC} -Ios=OpenBSD -Tascii -mdoc ${.ALLSRC} > ${.TARGET} |
| 39 |
|
| 40 |
ascii-clean-opt: |
| 41 |
rm -f TH.mandoc_ascii_opt Dd.mandoc_ascii_opt |
| 42 |
|
| 43 |
TH.out_ascii_opt: TH.in |
| 44 |
/usr/local/bin/nroff -c -man -Tascii ${.ALLSRC} > ${.TARGET} |
| 45 |
|
| 46 |
Dd.out_ascii_opt: Dd.in |
| 47 |
/usr/local/bin/nroff -c -mdoc -Tascii ${.ALLSRC} > ${.TARGET} |
| 48 |
|
| 49 |
groff-clean-opt: |
| 50 |
rm -f TH.out_ascii_opt Dd.out_ascii_opt |