Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jul 2004 13:36:44 -0500
From:      Will Andrews <will@csociety.org>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        FreeBSD Ports <ports@FreeBSD.org>
Subject:   Re: Why does bsd.port.mk override make's search for Makefiles...?
Message-ID:  <20040709183644.GW75771@sirius.firepipe.net>
In-Reply-To: <40EED7C4.8090707@mac.com>
References:  <677C3B7A-D175-11D8-8006-00039312D914@fillmore-labs.com> <40EECC32.2040805@mac.com> <20040709165614.GV75771@sirius.firepipe.net> <40EED7C4.8090707@mac.com>

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

--Vsi50HYs5tPfr+1I
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jul 09, 2004 at 01:37:08PM -0400, Chuck Swiger wrote:
> Hmm, you're right.  OK, I am more literate now, and I believe I understan=
d=20
> the problem mentioned in the PR, I'm just not sure I agree with renaming=
=20
> MAKEFILE to MAKE_FILE everywhere.

You raise a good point.  However, the desire is not to conflict
with _any_ standard, and MAKE_FILE seems to fit the bill.

I would say the lack of a mention of MAKEFILE in make(1) is a bug
in the man page, because:

% cat > Makefile
all:
	@echo MAKEFILE=3D$(MAKEFILE)
^D
% make
MAKEFILE=3DMakefile
%

Hmm.  However, it does not seem to use MAKEFILE from the
environment, it simply defines it as the makefile it's using.

% cat > Makefile2
all:
	@echo MAKEFILE=3D$(MAKEFILE)
	@echo hi
^D
% env MAKEFILE=3DMakefile2 make
MAKEFILE=3DMakefile
% make -f Makefile2
MAKEFILE=3DMakefile2
hi
%

I'm not sure what's going on here.  I will have to make some time
to investigate PR#30331 more.

> ...so which standard do we want to choose from?  :-)  Does POSIX say=20
> anything (useful) about what make should do with regard to $MAKEFILE...?

I am not concerned with maintaining make(1) - BTDT.

Regards,
--=20
wca

--Vsi50HYs5tPfr+1I
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFA7uW8F47idPgWcsURAgu0AJ4+qyPWub6ZxgW7rfDJ2xMHgYvPBQCcCkl0
sqwVslnAcxkpB6or2Bc1GUE=
=WsC4
-----END PGP SIGNATURE-----

--Vsi50HYs5tPfr+1I--



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