URL:
<http://savannah.gnu.org/bugs/?42617>
Summary: Loaded Object Interface: function call doesn't take
variables as parameters
Project: make
Submitted by: bhavesh
Submitted on: Wed 25 Jun 2014 07:16:09 PM GMT
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 4.0
Operating System: None
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
I am trying to call a function (registered with make) from within the
makefile.
example:
This is the documented way to call the registered function:
$(function_name param1,param2)
This does work properly.
---------------------------------------------------------------
But when I try to call the function with parameters as variables to avoid
hard-coding the parameters every time:
PARAM := param2
$(function_name param1,$(PARAM))
This call doesn't work at all. it sends $(PARAM) and $(PARAM2) as parameters
without expanding them.
This is the my main question, I would like to see how this works with
variables as parameters.
---------------------------------------------------------------
I also tried calling this function using the "call" directive:
$(call function_name,param1,$(PARAM2))
This call to the loaded function works fine. It sends the expansion of
$(PARAM2) as a variable unlike in the previous example.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42617>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make