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

2022-10-31 Thread Thierry LARMOIRE
Follow-up Comment #3, bug #45799 (project make):

Thank you !


___

Reply to this item at:

  

___
Message posté via Savannah
https://savannah.gnu.org/




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

2022-10-31 Thread Paul D. Smith
Update of bug #45799 (project make):

  Status:None => Duplicate  
 Open/Closed:Open => Closed 
   Component Version:None => 3.82   
   Fixed Release:None => 4.4

___

Follow-up Comment #2:

Thanks for pointing this out Jouke!


___

Reply to this item at:

  

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




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

2022-10-31 Thread Jouke Witteveen
Follow-up Comment #1, bug #45799 (project make):

The recently released GNU Make 4.4 has the $(let ...) function, which provides
local variables. The current feature request is thus taken care of.


___

Reply to this item at:

  

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




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

2015-08-20 Thread Thierry LARMOIRE
URL:
  http://savannah.gnu.org/bugs/?45799

 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

___

Details:

add a lset function

$(lset var_name,value)

function_table_entry
...
  { 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])
  {
define_variable(argv[0],strlen(argv[0]),argv[1],o_command,0);
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:

  http://savannah.gnu.org/bugs/?45799

___
  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