diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2013-01-17 18:28:26 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2013-01-17 18:28:26 +0000 |
commit | c8c7a91dff19cf0740043de6581e0f5f985380a1 (patch) | |
tree | e20580ff91190262e72e9c2050024c6e97f73d32 /share/mk/bsd.nls.mk | |
parent | 81d623fe156efeab87e79ac22890a86cfaca300f (diff) | |
download | src-c8c7a91dff19cf0740043de6581e0f5f985380a1.tar.gz src-c8c7a91dff19cf0740043de6581e0f5f985380a1.zip |
Put NLS related symlinks into their own variable, so that
when MK_STAGING_PROG is true, we can put them in the right place.
Notes
Notes:
svn path=/projects/bmake/; revision=245564
Diffstat (limited to 'share/mk/bsd.nls.mk')
-rw-r--r-- | share/mk/bsd.nls.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/share/mk/bsd.nls.mk b/share/mk/bsd.nls.mk index 48093ebf0838..3d2efc120e29 100644 --- a/share/mk/bsd.nls.mk +++ b/share/mk/bsd.nls.mk @@ -61,13 +61,22 @@ NLSDIR?= ${SHAREDIR}/nls # # installation rules # +.if ${MK_STAGING_PROG} == "yes" +.if !defined(_SKIP_BUILD) +all: stage_symlinks +.endif +STAGE_SYMLINKS.NLS= ${NLSSYMLINKS} +STAGE_SYMLINKS_DIR.NLS= ${STAGE_OBJTOP} +.else +SYMLINKS+= ${NLSSYMLINKS} +.endif .for file in ${NLS} NLSNAME_${file:T}= ${file:T:R}/${NLSNAME}.cat .if defined(NLSLINKS_${file:R}) && !empty(NLSLINKS_${file:R}) NLSLINKS+= ${file:R} .endif .for dst in ${NLSLINKS_${file:R}} -SYMLINKS+= ../${file:R}/${NLSNAME}.cat ${NLSDIR}/${dst}/${NLSNAME}.cat +NLSSYMLINKS+= ../${file:R}/${NLSNAME}.cat ${NLSDIR}/${dst}/${NLSNAME}.cat .endfor .endfor |