📜  制作函数 makefile - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:43.589000             🧑  作者: Mango

代码示例1
define generate_file
    sed 's/{NAME}/$(1)/' greetings.tmpl >$(2).txt
endef

all:
    $(call generate_file,John Doe,101)
    $(call generate_file,Peter Pan,102)