Date: Sun, 24 Jun 2007 15:14:04 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 122231 for review Message-ID: <200706241514.l5OFE4Km044143@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122231 Change 122231 by gabor@gabor_server on 2007/06/24 15:13:24 - Use targets, this part will be improved a bit later - This change also rids away a warning we had before Affected files ... .. //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.mk#25 edit Differences ... ==== //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.mk#25 (text+ko) ==== @@ -1094,7 +1094,19 @@ # .if defined(DESTDIR) && !empty(DESTDIR) && !defined(CHROOTED) -.BEGIN: + +.for _target in ${.TARGETS} +${_target}: pre-chroot do-chroot post-chroot + @${TRUE} +.endfor + +.if !target(pre-chroot) +pre-chroot: + @${TRUE} +.endif + +.if !target(do-chroot) +do-chroot: ${MKDIR} ${DESTDIR}${PORTSDIR} # found=0; \ # for i in `${MOUNT} | ${AWK} {'print $$3'}` ; do \ @@ -1112,6 +1124,13 @@ .endif ${ECHO_CMD} "===> Starting chrooted make in ${DESTDIR}..."; \ ${CHROOT} ${DESTDIR} ${SH} -c "(cd ${.CURDIR}; ${MAKE} DESTDIR= CHROOTED=YES ${.TARGETS})" +.endif + +.if !target(post-chroot) +post-chroot: + @${TRUE} +.endif + .else # Look for ${WRKSRC}/.../*.orig files, and (re-)create
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706241514.l5OFE4Km044143>