Invoke a user-defined macro like a function.
Section: Shell, call, eval, and generated rules
call macro with arguments
makefile
makefile
define banner
$(info === $(1) ===)
endef
$(call banner,Deploying API)Explanation
`$(1)`, `$(2)`, and so on are positional arguments inside `define` blocks and recursive vars.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Shell, call, eval, and generated rules