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-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make