freebsd-skq/usr.sbin/unbound/Makefile.inc
Dag-Erling Smørgrav 0ff59c3e99 Improved substitution logic for Unbound man pages.
Approved by:	re (kib)
2018-10-10 08:20:14 +00:00

18 lines
374 B
Makefile

# $FreeBSD$
NO_WERROR= true
NO_WTHREAD_SAFETY= true
PACKAGE= unbound
.for man in ${MAN}
${man}: ${UNBOUNDDIR}/doc/${man:S/local-//}
sed -E \
-e 's/\<(fI)?u(nbound\>[^.])/\1local-u\2/g' \
-e 's/\<(fI)?U(nbound\>[^.])/\1Local-u\2/g' \
-e 's/\/local-unbound/\/unbound/g' \
<${.ALLSRC} >${.TARGET}
CLEANFILES += ${man}
.endfor
.include "../Makefile.inc"