Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2004 18:55:19 +0200
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        "Brian F. Feldman" <green@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/share/mk bsd.obj.mk
Message-ID:  <20040108165519.GA33759@FreeBSD.org.ua>
In-Reply-To: <200401081636.i08GaJTM011353@green.bikeshed.org>
References:  <20040108162556.GB31301@FreeBSD.org.ua> <200401081636.i08GaJTM011353@green.bikeshed.org>

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

--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 <ru@FreeBSD.org> 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--



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