PERFORCE change 122231 for review

Gabor Kovesdan gabor at FreeBSD.org
Sun Jun 24 15:14:06 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=122231

Change 122231 by gabor at 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


More information about the p4-projects mailing list