Samuel Bronson wrote:
> Markus Heidelberg wrote:

>> In the buildroot project (it consists of Makefiles) there a lots of
>> those workarounds. There was a patch on the list to replace all
>> $(strip $(subst ",,$(FOO))) with $(call strip_dquotes, $(FOO)), but
>> $(call) is not allowed in git for compatibility reasons.
> Hmm.  What compatibility reasons, and are they still applicable?

Good question.

  $ git log -1 -S'$(call ' -- Makefile 
  commit 39c015c556f285106931e0500f301de462b0e46e
  Author: Johannes Schindelin <johannes.schinde...@gmx.de>
  Date:   Sat Feb 18 12:40:22 2006 +0100

      Fixes for ancient versions of GNU make

      Some versions of GNU make do not understand $(call), and have problems to
      interpret rules like this:

      some_target: CFLAGS += -Dsome=defs

      [jc: simplified substitution a bit. ]

      Signed-off-by: Johannes E. Schindelin <johannes.schinde...@gmx.de>
      Signed-off-by: Junio C Hamano <jun...@cox.net>

A quick gmane search finds [1], which suggests the "make" where this
problem came up was on IRIX.  I don't have a strong opinion either way
about whether such ancient 'make' is worth supporting (as a practical
matter, it's hard to keep testing and make sure such support still

Would $(call) simplify the makefile much?


[1] http://thread.gmane.org/gmane.comp.version-control.git/16344
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to