On Wed, May 15, 2002 at 09:26:29AM -0700, David O'Brien wrote: > Almost correct. For the record and future ports: > > > It's useful for a new arch that doesn't have make world yet. When I would > > update world on my sparc before gcc was bmake'd it went something like this: > > sudo make hierarchy > > > > sudo make includes > > > sudo make libraries > > > make obj && make depend && make > > > sudo make install > > > > To build and install a new world. > With this simple patch,
%%%
--- Makefile.inc1~ Wed May 15 19:35:00 2002
+++ Makefile.inc1 Wed May 15 19:38:02 2002
@@ -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}
%%%
one can easily ``make buildworld TARGET_ARCH=foo -DNO_cross-tools''.
See the ``make -f Makefile.inc1 -V WMAKE_TGTS -DNO_cross-tools''
output for details. (Yet one simple patch might be required to
exclude gnu/usr.bin/cc/cc_tools from the list of build-tools.)
Please let me know if you want me to commit this, or something
like that.
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
msg38380/pgp00000.pgp
Description: PGP signature
