From owner-cvs-all@FreeBSD.ORG Thu Jan 8 08:36:20 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from green.bikeshed.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 05CD716A4D0; Thu, 8 Jan 2004 08:36:20 -0800 (PST) Received: from green.bikeshed.org (green@localhost [127.0.0.1]) by green.bikeshed.org (8.12.10/8.12.9) with ESMTP id i08GaJnU011356; Thu, 8 Jan 2004 11:36:19 -0500 (EST) (envelope-from green@green.bikeshed.org) Received: from localhost (green@localhost)i08GaJTM011353; Thu, 8 Jan 2004 11:36:19 -0500 (EST) Message-Id: <200401081636.i08GaJTM011353@green.bikeshed.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Ruslan Ermilov In-Reply-To: Message from Ruslan Ermilov <20040108162556.GB31301@FreeBSD.org.ua> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 08 Jan 2004 11:36:19 -0500 Sender: green@green.bikeshed.org 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:36:20 -0000 Ruslan Ermilov wrote: > : $ make MAKE='/usr/bin/make -DFOO' print-make > : /usr/bin/make -DFOO > : $ make MAKE='/usr/bin/make -DFOO' -V MAKE > : make > > If you really need to access command-line arguments, there > is the .MAKEFLAGS variable available for that purpose. > > But why do you need to ``make MAKE='/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: Think about this: what options to ${MAKE} are there that have nothing to do with setting defines? There's actually quite a few; the one in particular that I care about is "-f"; if I want to use bsd.subdir.mk to simply apply one BSD Makefile to several directions (which I _do_), I need to use -f, i.e.: MAKE+= -f ${.CURDIR}/drivers/Makefile.subdriver The only think that broke this was the cleandir target. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\