Follow-up Comment #2, bug #56206 (project make):

Somehow my previous comment was truncated (I do so HATE Savannah markup :( ):


There is another assignment operator for variables, ‘?=’. This is called a
conditional variable
assignment operator, because it only has an effect if the variable is not yet
defined.
This statement:

  FOO ?= bar

is exactly equivalent to this (see The origin Function):

  ifeq ($(origin FOO), undefined)
    FOO = bar
  endif

Note that a variable set to an empty value is still defined, so ‘?=’ will
not set that variable. 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56206>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to