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)

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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to