help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to code if/then/else in makefile


From: Robert P. J. Day
Subject: Re: how to code if/then/else in makefile
Date: Wed, 10 Nov 2004 14:00:17 -0500 (EST)

On Wed, 10 Nov 2004, Paul D. Smith wrote:

> I'm not quite sure I follow your question, but it's trivial to test an
> empty string:
>
>     ifeq (,$(VAR))
>       $(warning Variable VAR is empty)
>     else
>       $(warning Variable VAR is not empty)
>     endif

hmmm ... i didn't actually test this, my colleague *assured* me that
he had tried an empty string compare and it didn't work.  i shall have
a stern chat with him. :-)  thanks.

rday




reply via email to

[Prev in Thread] Current Thread [Next in Thread]