help-gnu-utils
[Top][All Lists]
Advanced

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

Re: make Q


From: Tom Browder
Subject: Re: make Q
Date: Mon, 9 Mar 2009 17:59:08 -0500

On Mon, Mar 9, 2009 at 1:02 PM, Aaron Gray <ang.usenet@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




reply via email to

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