github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/kati/testcase/nested_call.mk (about)

     1  define inner
     2  {$(1)|$(origin 1),$(2)|$(origin 2)}
     3  endef
     4  
     5  define macro
     6  $(call inner,$(1)) \
     7  $(call inner,test2) \
     8  $(call inner,test3,) \
     9  $(call inner,test4,macro) \
    10  $(call inner)
    11  endef
    12  
    13  2=global
    14  
    15  test:
    16  	@echo "$(call macro,test1)"
    17  	@echo "$(call macro)"