Why does bsd.port.mk override make's search for Makefiles...?

Oliver Eikemeier eikemeier at fillmore-labs.com
Fri Jul 9 12:37:02 PDT 2004


Am Freitag den, 9. Juli 2004, um 18:47, schrieb Chuck Swiger:

> Oliver Eikemeier wrote:
>> Will Andrews wrote:
>>> Perhaps the best thing to do might be to replace the b.p.m code:
>>>
>>> .if defined(MAKE_FILE)
>>> MAKE_FLAGS?=    -f ${MAKE_FILE}
>>> .endif
>>>
>>> (Note this affects PR #30331[1], which I was working on some time
>>> ago and really need to finish.)
>>>
>>> [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/30331
>> Go Will, go, go, go! The crowd cheers.
>
> Heh, thanks for the laugh.  :-)  But I suspect the above should be:
>
> .if defined(MAKEFILE)
> MAKE_FLAGS?=    -f ${MAKEFILE}
> .endif

No, OpenBSD fixed this four years ago:
   <http://www.openbsd.org/cgi-
bin/cvsweb/ports/infrastructure/mk/bsd.port.mk.diff?r1=1.209&r2=1.210>

MAKEFILE is a variable set by make(1), so any MAKEFILE= on the command 
line, or any MAKEFILE?= in Makefile is overwritten. Also is is 
impossible to try out alternate port makefiles with `make -f'.

Sorry when I've been a bit to overenthusiastic, but this has been very 
annoying (during testing) and it is about time we fix this.

-Oliver



More information about the freebsd-ports mailing list