help-make
[Top][All Lists]
Advanced

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

Re: conditional statements


From: Oleksandr Gavenko
Subject: Re: conditional statements
Date: Fri, 30 Apr 2010 12:08:36 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

On 2010.04.30 7:25, Payal wrote:
Sorry, but can you give me simpler example. It need not be realistic.
Just maybe, if cc == gcc, echo "great".
$(if $(cond),...,...) check $(cond) for non-empty string.

But  always you can use:

cond=true
ifeq 'windows' '$(host_os)'
  # this mark false
  cond=
endif

a: b
    gcc -o $@ $< $(if $(cond),| tee .log)

--
С уважением, Александр Гавенко.




reply via email to

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