diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk index 67d744639082..a5422ea0400c 100644 --- a/share/mk/bsd.man.mk +++ b/share/mk/bsd.man.mk @@ -186,7 +186,7 @@ _maninstall: ${MAN} .endif .endfor .else -.for _page _sect ${.ALLSRC:C/\.([^.]*)$/.\1 \1/} +.for _page _sect in ${.ALLSRC:C/\.([^.]*)$/.\1 \1/} @d=${DESTDIR}${MANDIR}${_sect}${MANSUBDIR}; \ ${ECHO} ${MINSTALL} ${_page} $${d}; \ ${MINSTALL} $${page} $${d};