Re: Compatibility between BSD make and GNU make
On Wed, 12 Dec 2007 05:29:50 +0800 Thomas Goirand wrote:
> I'd like to set conditions on variables in a make file to do:
>
> ifndef $(APP_DIR)
> APP_DIR=/usr/share
> endif
>
> This works on Debian, however on FreeBSD, it doesn't work, and I have to
> write this:
>
> .ifndef $(APP_DIR)
> APP_DIR=/usr/share
> .endif
>
> Is there something that is compatible with both that I could use?
AFAIK both should accept
APP_DIR ?= /usr/share
HTH
Evgeni
Reply to: