diff --git a/share/mk/bsd.doc.mk b/share/mk/bsd.doc.mk index 9fd8d8032eb7..23a9bb64b3c9 100644 --- a/share/mk/bsd.doc.mk +++ b/share/mk/bsd.doc.mk @@ -54,7 +54,7 @@ PAGES?= 1- UNROFF?= unroff HTML_SPLIT?= yes -UNROFFFLAGS?= -ms -fhtml +UNROFFFLAGS?= -fhtml .if ${HTML_SPLIT} == "yes" UNROFFFLAGS+= split=1 .endif @@ -123,7 +123,8 @@ SRCDIR?= ${.CURDIR} .if !target(${DFILE}) .if ${PRINTERDEVICE} == "html" ${DFILE}: ${SRCS} ${EXTRA} ${OBJS} - cd ${SRCDIR}; ${UNROFF} ${UNROFFFLAGS} document=${DOC} ${.ALLSRC} + cd ${SRCDIR}; ${UNROFF} ${MACROS} ${UNROFFFLAGS} \ + document=${DOC} ${SRCS} .else ${DFILE}:: ${SRCS} ${EXTRA} ${OBJS}