On Wed, May 15, 2002 at 03:18:15PM -0700, David O'Brien wrote: > On Wed, May 15, 2002 at 07:43:22PM +0300, Ruslan Ermilov wrote: > > one can easily ``make buildworld TARGET_ARCH=foo -DNO_cross-tools''. > > I am now doing many cross buildworlds. Is there a target (used with > -DNOCLEAN) to use to save time and resume a build at stage 4? > With the patch I posted yesterday,
%%%
Index: Makefile.inc1
===================================================================
RCS file: /home/ncvs/src/Makefile.inc1,v
retrieving revision 1.277
diff -u -r1.277 Makefile.inc1
--- Makefile.inc1 15 May 2002 16:29:44 -0000 1.277
+++ Makefile.inc1 16 May 2002 06:06:09 -0000
@@ -330,6 +330,12 @@
.endif
WMAKE_TGTS+= _includes _libraries _depend everything
+.for __target in ${WMAKE_TGTS}
+.if defined(NO${__target})
+WMAKE_TGTS:= ${WMAKE_TGTS:N${__target}}
+.endif
+.endfor
+
buildworld: ${WMAKE_TGTS}
.ORDER: ${WMAKE_TGTS}
%%%
it's possible to achieve this with:
: make \
: -DNO_worldtmp -DNO_bootstrap-tools -DNO_cleanobj -DNO_obj \
: -DNO_build-tools -DNO_cross-tools \
: buildworld TARGET_ARCH=foo
Which in essence is equivalent to this sh(1) script:
: cd /whatever/usr/src
: for target in _includes _libraries _depend everything; do
: make -m `pwd`/share/mk -f Makefile.inc1 \
: ${target} TARGET_ARCH=foo
: done
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
[EMAIL PROTECTED] Sunbay Software AG,
[EMAIL PROTECTED] FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
msg38416/pgp00000.pgp
Description: PGP signature
