[bug #52209] Support for ifeq function

2023-01-23 Thread Sam Kendall
Follow-up Comment #5, bug #52209 (project make): I strongly agree with the need but suggest a different syntax: $(eq lhs,rhs) $(neq lhs,rhs) Each function expands lhs and rhs. If the results are identical or nonidentical, respectively, the function expands to T. Otherwise, it expands to empty.

[bug #52209] Support for ifeq function

2017-10-15 Thread Rob
Follow-up Comment #4, bug #52209 (project make): Patch added. The rational is that this is an operation needed to support rebuilding of targets when recipes change. Support for rebuilding of targets on recipe change requires the recipe of every target to be expanded and compared with its previou

Re: [bug #52209] Support for ifeq function

2017-10-13 Thread Tim Murphy
Sorry for "plugging" my work but you can use loadable modules to implement any function you like and I have done "ifeq" some time ago here: https://bitbucket.org/tnmurphy/extramake ... except my version is $(equals...) This is a good way to experiment with what you want from the function before

[bug #52209] Support for ifeq function

2017-10-11 Thread anonymous
Follow-up Comment #3, bug #52209 (project make): Thanks Paul for dealing with this so quickly. For the benefit of clarity (and the poster of comment #1), the parallel between what I propose and the existing preprocessor version is deliberate as I value consistency in design. There has been an eq

[bug #52209] Support for ifeq function

2017-10-11 Thread Paul D. Smith
Follow-up Comment #2, bug #52209 (project make): Those (ifeq, ifneq) are not functions, they're preprocessor conditionals. Only $(if ...) (and $(or ...) and $(and ...)) are functions. ___ Reply to this item at:

[bug #52209] Support for ifeq function

2017-10-11 Thread anonymous
Follow-up Comment #1, bug #52209 (project make): Ummm ... is this some kind of meta-April-fools joke, offset by 6 months? On the off chance that it's serious I refer you to the descriptions of the (yes) $(ifeq ...), $(ifneq ...), and $(if ...) functions in https://www.gnu.org/software/make/manual

[bug #52209] Support for ifeq function

2017-10-11 Thread anonymous
URL: 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