PERFORCE change 122232 for review
Gabor Kovesdan
gabor at FreeBSD.org
Sun Jun 24 15:38:36 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=122232
Change 122232 by gabor at gabor_server on 2007/06/24 15:38:09
- Move DESTDIR part to bsd.destdir.mk
Affected files ...
.. //depot/projects/soc2006/gabor_destdir/Mk/bsd.destdir.mk#1 add
.. //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.mk#26 edit
Differences ...
==== //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.mk#26 (text+ko) ====
@@ -1095,41 +1095,7 @@
.if defined(DESTDIR) && !empty(DESTDIR) && !defined(CHROOTED)
-.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 \
-# if [ `${REALPATH} ${DESTDIR}${PORTSDIR}` == `${REALPATH} $${i}` ]; then \
-# found=1; \
-# fi ; \
-# done ; \
-# if [ $${found} != 1 ]; then \
-# ${ECHO_CMD} "===> Nullmounting ${PORTSDIR} into ${DESTDIR}..."; \
-# ${MOUNT} -t nullfs ${PORTSDIR} ${DESTDIR}${PORTSDIR}; \
-# fi
-.if !exists (${DESTDIR}/dev/null)
- ${ECHO_CMD} "===> Mounting devfs into ${DESTDIR}..."; \
- ${MOUNT} -t devfs devfs ${DESTDIR}/dev
-.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
+.include "${PORTSDIR}/Mk/bsd.destdir.mk"
.else
More information about the p4-projects
mailing list