svn commit: r245564 - projects/bmake/share/mk

Simon J. Gerraty sjg at FreeBSD.org
Thu Jan 17 18:28:26 UTC 2013


Author: sjg
Date: Thu Jan 17 18:28:26 2013
New Revision: 245564
URL: http://svnweb.freebsd.org/changeset/base/245564

Log:
  Put NLS related symlinks into their own variable, so that
  when MK_STAGING_PROG is true, we can put them in the right place.

Modified:
  projects/bmake/share/mk/bsd.nls.mk

Modified: projects/bmake/share/mk/bsd.nls.mk
==============================================================================
--- projects/bmake/share/mk/bsd.nls.mk	Thu Jan 17 18:26:56 2013	(r245563)
+++ projects/bmake/share/mk/bsd.nls.mk	Thu Jan 17 18:28:26 2013	(r245564)
@@ -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
 


More information about the svn-src-projects mailing list