From owner-cvs-all@FreeBSD.ORG Thu Jan 8 08:55:24 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60E3B16A4CE; Thu, 8 Jan 2004 08:55:24 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F93A43D1F; Thu, 8 Jan 2004 08:55:21 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i08GtJl7033955; Thu, 8 Jan 2004 18:55:19 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i08GtJw3033954; Thu, 8 Jan 2004 18:55:19 +0200 (EET) (envelope-from ru) Date: Thu, 8 Jan 2004 18:55:19 +0200 From: Ruslan Ermilov To: "Brian F. Feldman" Message-ID: <20040108165519.GA33759@FreeBSD.org.ua> References: <20040108162556.GB31301@FreeBSD.org.ua> <200401081636.i08GaJTM011353@green.bikeshed.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <200401081636.i08GaJTM011353@green.bikeshed.org> User-Agent: Mutt/1.5.5.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/mk bsd.obj.mk X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 16:55:24 -0000 --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 08, 2004 at 11:36:19AM -0500, Brian F. Feldman wrote: > Ruslan Ermilov wrote: > > : $ make MAKE=3D'/usr/bin/make -DFOO' print-make > > : /usr/bin/make -DFOO > > : $ make MAKE=3D'/usr/bin/make -DFOO' -V MAKE > > : make > >=20 > > If you really need to access command-line arguments, there > > is the .MAKEFLAGS variable available for that purpose. > >=20 > > But why do you need to ``make MAKE=3D'/usr/bin/make -DFOO' bar'' > > in the first place instead of simple ``make -DFOO bar''? If > > "bar" is recursive (i.e., runs ${MAKE} subprocesses), then > > -DFOO will be properly propagated: >=20 > Think about this: what options to ${MAKE} are there that have nothing to = do=20 > with setting defines? There's actually quite a few; the one in particula= r=20 > that I care about is "-f"; if I want to use bsd.subdir.mk to simply apply= =20 > one BSD Makefile to several directions (which I _do_), I need to use -f,= =20 > i.e.: >=20 > MAKE+=3D -f ${.CURDIR}/drivers/Makefile.subdriver >=20 > The only think that broke this was the cleandir target. >=20 Then you should be using the .MAKEFLAS variables here, see sys/modules/Makefile for one working example, and let me know if it works for you. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQE//Yt3Ukv4P6juNwoRAijrAJ4wxYyD/sqSPYwEFMa8xdCfbb7xrACfShYX kkHriVhupnK7U1hMAlBIcEg= =75hA -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx--