diff --git a/share/mk/bsd.nls.mk b/share/mk/bsd.nls.mk index d160a2bcf2d4..684394b53889 100644 --- a/share/mk/bsd.nls.mk +++ b/share/mk/bsd.nls.mk @@ -71,12 +71,12 @@ STAGE_SYMLINKS_DIR.NLS= ${STAGE_OBJTOP} SYMLINKS+= ${NLSSYMLINKS} .endif .for file in ${NLS} -NLSNAME_${file:T}= ${file:T:R}/${NLSNAME}.cat +NLSDIR_${file:T}= ${NLSDIR}/${file:T:R} +NLSNAME_${file:T}= ${NLSNAME}.cat .if defined(NLSLINKS_${file:R}) && !empty(NLSLINKS_${file:R}) .if !empty(NLSLINKS_${file:R}:M${file:R}) .error NLSLINKS_${file:R} contains itself: ${file:R} .endif -NLSLINKS+= ${file:R} .endif .for dst in ${NLSLINKS_${file:R}} NLSSYMLINKS+= ../${file:R}/${NLSNAME}.cat ${NLSDIR}/${dst}/${NLSNAME}.cat