Makefile 如何在nmake中定义函数调用?

Makefile 如何在nmake中定义函数调用?,makefile,nmake,Makefile,Nmake,我正在将GNU Make文件翻译成nmake。其功能定义如下: define pull_container docker pull projectunik/$(1):$(shell jq '.["$(1)"]' containers/versions.json) endef 然后可以调用函数,如下所示: $(call pull_container,vsphere-client) 实际参数vsphere client将替换为第一个参数:$(1)。有什么方法可以代替nmake吗?没有。我

我正在将GNU Make文件翻译成nmake。其功能定义如下:

define pull_container
    docker pull projectunik/$(1):$(shell jq '.["$(1)"]' containers/versions.json)
endef
然后可以调用函数,如下所示:

$(call pull_container,vsphere-client)

实际参数
vsphere client
将替换为第一个参数:
$(1)
。有什么方法可以代替nmake吗?

没有。我的意思是,你必须在任何地方用手写出来。谢谢。恐怕也没有别的办法了。