命令中的 Makefile 匹配模式

Makefile match pattern in command

我正在尝试弄清楚如何访问规则中的匹配模式:

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

换句话说,为 float16、float32、float64 实例化了规则,我想 运行 特定类型的浮点数的命令。百分号在规则的这一部分没有展开,我无法从文档中弄清楚如何获得匹配的数字。有什么想法吗?

利用 pattern stem $*...

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