Home | History | Annotate | Download | only in testcase
      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)"
     18