diff options
author | sjg <sjg@FreeBSD.org> | 2013-01-17 18:28:26 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2013-01-17 18:28:26 +0000 |
commit | 762d2d06e3dd1692fcf5f064afa9a588b4137efc (patch) | |
tree | e20580ff91190262e72e9c2050024c6e97f73d32 /share/mk/bsd.nls.mk | |
parent | f49361e79012aac3ed2acd278543d5152985dc91 (diff) | |
download | FreeBSD-src-762d2d06e3dd1692fcf5f064afa9a588b4137efc.zip FreeBSD-src-762d2d06e3dd1692fcf5f064afa9a588b4137efc.tar.gz |
Put NLS related symlinks into their own variable, so that
when MK_STAGING_PROG is true, we can put them in the right place.
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 48093eb..3d2efc1 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 |