Makefile文件  |  16行  |  139 B

define cmd
echo foo
echo bar
endef

define cmd2
echo baz
@$(call cmd)
endef

test:
	$(call cmd)
	@$(call cmd)
	$(call cmd2)
	@$(call cmd2)