[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #45799] handle local variables in $(call )

From: Thierry LARMOIRE
Subject: [bug #45799] handle local variables in $(call )
Date: Thu, 20 Aug 2015 12:10:13 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0


                 Summary: handle local variables in $(call )
                 Project: make
            Submitted by: tlarmoire
            Submitted on: Thu 20 Aug 2015 12:10:12 PM GMT
                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



add a lset function

$(lset var_name,value)

  { STRING_SIZE_TUPLE("lset"),          2,  2,  1,  func_lset},

static char *
func_lset (char *o, char **argv, const char *funcname UNUSED)
  if(argv[0] && argv[1])
    o = variable_buffer_output (o, argv[1], strlen (argv[1]));
  return o;

note, this defines locals in $(foreach ) also :
$(foreach src,$(srcs),$(lset obj,$(subst .c,.o,$(src)))$(info $(obj)))


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]