命令中的Makefile匹配模式

命令中的Makefile匹配模式,makefile,gnu-make,Makefile,Gnu Make,我试图找出如何在规则中访问匹配的模式: bin/my_target_float%.a: foo command -dtype float% 换句话说,将为float16、float32、float64实例化规则,我想为特定类型的float运行命令。规则的这一部分没有扩展百分号,我无法从文档中找到匹配的数字。有什么想法吗?利用 利用 bin/my_target_float%.a: foo command -dtype float$*

我试图找出如何在规则中访问匹配的模式:

bin/my_target_float%.a: foo
    command -dtype float%
换句话说,将为float16、float32、float64实例化规则,我想为特定类型的float运行命令。规则的这一部分没有扩展百分号,我无法从文档中找到匹配的数字。有什么想法吗?

利用

利用

bin/my_target_float%.a: foo
        command -dtype float$*