$OpenBSD$
--- xdoc/Makefile.orig	Mon Oct 24 18:02:16 2016
+++ xdoc/Makefile	Mon Oct 24 18:02:08 2016
@@ -1,9 +1,9 @@
 WWW=$(HOME)/www/noweb
 SHELL=/bin/sh
 .SUFFIXES: .1 .7 .txt .ps
-.1.txt: ;	nroff -man $*.1 > $*.txt
+.1.txt: ;	mandoc -man $*.1 > $*.txt
 .1.ps: ;	psroff -t -man $*.1 > $*.ps
-.7.txt: ;	nroff -man $*.7 > $*.txt
+.7.txt: ;	mandoc -man $*.7 > $*.txt
 .7.ps: ;	psroff -t -man $*.7 > $*.ps
 
 MANPAGES=notangle.1   cpif.1   noweb.1   nodefs.1   noroots.1   noindex.1   \
