[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #52209] Support for ifeq function
From: |
anonymous |
Subject: |
[bug #52209] Support for ifeq function |
Date: |
Wed, 11 Oct 2017 15:59:05 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.gnu.org/bugs/?52209>
Summary: Support for ifeq function
Project: make
Submitted by: None
Submitted on: Wed 11 Oct 2017 07:59:03 PM UTC
Severity: 3 - Normal
Item Group: Enhancement
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: None
Operating System: Any
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
My makefiles frequently need to check for equality of two string. I'm doing
this during expansion of recipes so this happens many time during every
build.
Currently I need to do this:
$(if $(findstring X$(second),$(findstring
X$(first),X$(second))),same,different)
this looks clumsy and the strings can be very long (10s of kbytes) so is
probably inefficient as there need to be two findstrings.
Support for an ifeq function would be useful. Something like:
$(ifeq $(first),$(second),same,different)
This would allow different actions depend on the whether the string are equal.
It could also be used to generate boolean results as follows:
$(ifeq $(first),$(second),1)
where a non-empty result is true and an empty is false.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52209>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #52209] Support for ifeq function,
anonymous <=