Makefile, ${VARIABLE}= vs. ${VARIABLE}?=

Chris Rees utisoft at gmail.com
Sun Feb 13 14:44:35 UTC 2011


On 13 February 2011 14:14, Helmut Schneider <jumper99 at gmx.de> wrote:
> Hi,
>
> [helmut at BSDHelmut ~]$ grep -ir latest /usr/ports/www/apache2?
> /usr/ports/www/apache20/Makefile:LATEST_LINK=   apache20
> /usr/ports/www/apache22/Makefile:LATEST_LINK?=  apache22
> [helmut at BSDHelmut ~]$
>
> So, what's the difference between e.g. "LATEST_LINK=" and
> "LATEST_LINK?="?
>
> Thanks, Helmut
>

?= can be overridden in make.conf or on the command line.

= clobbers all previous definitions.

Chris


More information about the freebsd-ports mailing list