On Mon, Mar 9, 2009 at 1:02 PM, Aaron Gray <ang.use...@gmail.com> wrote:
...
> is there anyway I can combine these commands :-
>  ifeq ( $(OS), Cygwin)
>    X
>  else
>    ifeq ( $(OS), MingW)
>        X
>    else
...
> so I only need to write X once ?

Aaron, try this:

SPECOS :=  MingW Cygwin

ifeq ($(OS), $(findstring $(OS), $(SPECOS)))
  X
else
  Y
endif

-Tom


  • make Q Aaron Gray
    • Re: make Q Tom Browder

Reply via email to