From owner-freebsd-current Wed May 15 9:43:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 28D2A37B401; Wed, 15 May 2002 09:43:35 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g4FGhMr71659; Wed, 15 May 2002 19:43:22 +0300 (EEST) (envelope-from ru) Date: Wed, 15 May 2002 19:43:22 +0300 From: Ruslan Ermilov To: "David O'Brien" , John Baldwin , Bruce Evans , current@FreeBSD.org Subject: Re: make includes Message-ID: <20020515164322.GA70702@sunbay.com> References: <20020515161610.U7103-100000@gamplex.bde.org> <20020515092629.C81859@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline In-Reply-To: <20020515092629.C81859@dragon.nuxi.com> User-Agent: Mutt/1.3.99i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 15, 2002 at 09:26:29AM -0700, David O'Brien wrote: > Almost correct. For the record and future ports: >=20 > > It's useful for a new arch that doesn't have make world yet. When I wo= uld > > update world on my sparc before gcc was bmake'd it went something like = this: >=20 > sudo make hierarchy >=20 > > > sudo make includes > > > sudo make libraries > > > make obj && make depend && make > > > sudo make install > >=20 > > To build and install a new world. >=20 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+=3D _includes _libraries _depend everything =20 +.for __target in ${WMAKE_TGTS} +.if defined(NO${__target}) +WMAKE_TGTS:=3D ${WMAKE_TGTS:N${__target}} +.endif +.endfor + buildworld: ${WMAKE_TGTS} .ORDER: ${WMAKE_TGTS} =20 %%% one can easily ``make buildworld TARGET_ARCH=3Dfoo -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, --=20 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 --45Z9DzgjV8m4Oswq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE84pAqUkv4P6juNwoRAsStAJ4t8ETt1fVO9CNykcpLOgmNTlbbLwCdHEeC eZDzlrRJhPUFwlTz8ZXGBH4= =yfAy -----END PGP SIGNATURE----- --45Z9DzgjV8m4Oswq-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message