Answers for "define func makefile"

C
0

make a function makefile

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)
Posted by: Guest on September-23-2021

Code answers related to "C"

Browse Popular Code Answers by Language