[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $(if-eq ...)
From: |
Stephan Beal |
Subject: |
Re: $(if-eq ...) |
Date: |
Sat, 30 Jun 2007 15:44:39 +0200 |
User-agent: |
KMail/1.9.7 |
On Saturday 30 June 2007, John Graham-Cumming wrote:
...
> A simple way to do this is to use the GMSL seq (string equal
> function) and then do
>
> $(if $(call seq,LHS,RHS),THEN,ELSE)
>
> Of course you cannot wrap this in a $(call) because THEN and ELSE
> will be expanded and if you have any side effects ($(warning),
> $(error), $(info), $(shell), $(eval)) in them then that would be
> undesirable.
Excellent :). That's a very good idea.
i overlooked seq in the gmsl because i thought it had to do with
SEQuences, not String EQual. Likewise, i thought leq was Less-or-EQual,
not List-EQual.
--
----- stephan beal
http://www.wanderinghorse.net
signature.asc
Description: This is a digitally signed message part.