Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2002 19:43:22 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        "David O'Brien" <obrien@FreeBSD.org>, John Baldwin <jhb@FreeBSD.org>, Bruce Evans <bde@zeta.org.au>, current@FreeBSD.org
Subject:   Re: make includes
Message-ID:  <20020515164322.GA70702@sunbay.com>
In-Reply-To: <20020515092629.C81859@dragon.nuxi.com>
References:  <20020515161610.U7103-100000@gamplex.bde.org> <XFMail.20020515083728.jhb@FreeBSD.org> <20020515092629.C81859@dragon.nuxi.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE84pAqUkv4P6juNwoRAsStAJ4t8ETt1fVO9CNykcpLOgmNTlbbLwCdHEeC
eZDzlrRJhPUFwlTz8ZXGBH4=
=yfAy
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020515164322.GA70702>